Ako na vlastný server – III. (Konfigurácia Apache2, časť I.)

V tejto časti nášho seriálu “Ako na vlastný server” sa pozrieme na základnú konfiguráciu webového servera Apache. Začneme nazretím do konfiguračného súboru apache2.conf a popisom najhlavnejších častí.

Ako prvé nájdeme riadok
ServerRoot "/etc/apache2"
Tento riadok nám určuje kde je umiestnené/nainštalované Apache2, v tomto priečinku sa spravidla robia všetky nastavenia Apache.

O niekoľko riadkov si všimneme PidFile
PidFile ${APACHE_PID_FILE}
Je to súbor do ktorého si ukladá Apache čísla svojich spustených procesov.

Pri pohľade na okno vidíme TimeOut
Timeout 300
Určuje, počet sekúnd po ktorých sa má ukončiť spojenie.

Ďalej sa presúvame na KeepAlive
KeepAlive On
Zapneme alebo vypneme to, či prehliadač môže pri jednom spojení žiadať viac odpovedí.

Ďalej
MaxKeepAliveRequests 100
Maximálny počet dotazov pri jednom spojení. Pokiaľ zadáte “0″ tak tým spojenia neobmedzíte, avšak jednoducho zahltíte server.

KeepAliveTimeout 15
Ako dlho sa udržuje otvorené spojenie.

Nižšie nám začínajú prácu Apache moduly mpm_prefork_module a mpm_worker_module (vždy je možné mať nainštalovaný iba jeden!).
MinSpareServers 5
MaxSpareServers 10

Toto nastavenia sa náchadza iba v Unix systémoch, určuje, koľko odpovedí bude čakať v prípade nečinnosti.

StartServers 5
Počet serverov, ktoré sa spustia po zapnutí servera.

MaxClients 150
Maximálni počet súčasne bežiacich procesov servera, tímto sa dá limitovať aj maximálny počet akutálnych spojení. Toto nastavenie je potrebné optimalizovať pre výkon servera, nízke číslo by znamenalo spomalenie servera a pri vysokom čísle by bol následok preťaženie. Tímto sme skončili moduly mpm_prefork_module a mpm_worker_module.

ErrorLog
Cesta kam sa má ukladať ErrorLog, štandartne sa ukladá do /var/log/apache2/error.log
ErrorLog /var/log/apache2/error.log

LogLevel warn
Úroven logovania, môžeme si vybrať z viacero možností, napr. debug, info, notice, warn, error, crit, …

Pri pohľade na zostavájúcu časť apache2.conf vidíme len jednotlivé cesty odkiaľ sa majú načítavať napr. virtual hosts atp.
Tímto sme si prešli najdôležitejšie časti konfiguračného súboru Apache2, v časti II. si ukážeme pridávanie domén.

2 855 Responses to “Ako na vlastný server – III. (Konfigurácia Apache2, časť I.)”

  1. Cash with regard to College-Scholarships with regard to MinoritiesMedical web site…

    [...]these really are a couple of internet hyperlinks in order to internet sites that we connect to for that truth all of us really feel they are really critically really worth browsing[...]…

  2. Great blog…

    The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you coul…

  3. Personal Blog…

    [...]below you’ll find the link to some sites that we think you should visit[...]…

  4. Thanks you…

    There are some interesting points in time in this article but I donft know if I see all of them center to heart. There is some validity but I will take hold opinion until I look into it further. Good article , thanks and we want more! Added to FeedBur…

  5. Worthy sites…

    [...] definitely a big addict of backlinking to blog owners that I love but aren’t getting a considerable amount of link love coming from [...]…

  6. Energia tanúsítvány…

    [...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…

  7. Floors hovorí:

    Yahoo results…

    While searching Yahoo I found this page in the results and I didn’t think it fit…

  8. forum profile hovorí:

    Pickup Artist…

    [...]listed here are actually a few back links to a few other sites that I link to because I know they are truly worth dropping by[...]…

  9. Trainer hovorí:

    Thank you…

    I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post….

  10. Becky Tsan hovorí:

    Great website…

    [...] please visit the sites many of us follow, which includes this blog, as it connotes our choices from the web [...]…

  11. Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  12. Buy Yankee Candles Cheap…

    [...]below you’ll find the link to some sites that we think you should visit[...]…

  13. Trackback for this URI…

    [...] often a good supporter of linking to bloggers that I really like but don’t get quite a few link love out of [...]…

  14. mxe hovorí:

    Worthy sites…

    [...] just one of our readers recently recommended the following website [...]…

  15. Resveratrol NZ hovorí:

    Resveratrol…

    [...]Resveratrol supplement is actually a poly – phenolic compound found in many meals for example grapes[...]…

  16. Windows 8 hovorí:

    Windows 8…

    [...]the time to read or visit the content or sites we have linked to below the[...]…

  17. junk email hovorí:

    Good job…

    [...]very interesting subject , great post[...]…

  18. Reference to…

    …If you’re thinking about other people……

  19. [...]the time to read or visit the content or sites we have linked to below the[...]……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……

  20. Related……

    [...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……

  21. office cleaning hovorí:

    Hello!…

    An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. To the next. Cheers…

  22. truyen ma hovorí:

    truyen ma, nghe doc truyen ma kinh di…

    I must thanks here good place. truyen ma kinh di…

  23. lois cole hovorí:

    medium hairstyles

    Hello there, just became aware of your blog through Google, and found that it’s truly informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!…

  24. Windows 8 hovorí:

    Windows 8…

    [...]below you’ll find the link to some sites that we think you should visit[...]…

  25. game avatar. huong dan choi game avatar tren may tinh…

    I want to tell this page best post. game avatar 2.0…

  26. Websites you should visit…

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  27. A gaming website Recommends Your Site…

    [...]here couple оf links tо sites that аny of us backlink tо becausе we bеlieve there're worth visiting[...]…

  28. Coolest news on earth, you have to see this!…

    [...] Are you absolutely confident that may be the right information? I heard something more productive. I’ve basically had another theory that pop into my mind [...]…

  29. Trackback for this post…

    [...] that is the end of this article. Here you’ll discover several sites that we feel you’ll enjoy, click on the links through [...]…

  30. Honolulu dentist hovorí:

    You should check this out…

    [...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……

  31. Windows 8 consumer preview…

    [...]we like to honor other sites on the web, even if they aren’t related to us, by linking to them. Below are some sites worth checking out[...]…

  32. Phlebotomy Tech hovorí:

    [...]The information mentioned in the article are some of the best available [...]……

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  33. Latest Cell Phone news ? Hotest Cell news ?…

    [...]while the sites we link to below are completely unrelated to ours, we think they are worth a read, so have a look[...]…

  34. Another Title…

    I saw this really great post today….

  35. Sources…

    [...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……

  36. Radiology Tech hovorí:

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  37. spam email hovorí:

    very nice site…

    [...]Some truly nice stuff on this internet site, I love it[...]…

  38. liquid sutures hovorí:

    batrachian postureMedical website…

    Just discovered this blog through Google, what a pleasant shock!. Hello webmaster I like your post. terrific more please great….

  39. Bill Gates Scholarship…

    [...]listed here are some urls to web pages we connect to as we feel there’re worth visiting[...]…

  40. K Cups hovorí:

    Thanks you…

    There are some interesting points in time in this article but I donft know if I see all of them center to heart. There is some validity but I will take hold opinion until I look into it further. Good article , thanks and we want more! Added to FeedBur…

  41. Looking around…

    I like to browse around the web, often I will go to Stumble Upon and read and check stuff out…

  42. News info…

    I was reading the news and I saw this really cool information…

  43. Noem hovorí:

    Recent Blogroll Additions……

    [...]usually posts some very interesting stuff like this. If you’re new to this site[...]……

  44. Hi…

    It’s hard to find knowledgeable people on this topic, but you sound like you know what youfre talking about! Thanks…

  45. restaurant loan hovorí:

    Recent Additions……

    [...] undoubtedly one of our readers recently commended the following websites [...]…

  46. Worthy sites…

    [...] here are some links to sites that most of us link to because we believe they are really worth visiting [...]…

  47. super gry hovorí:

    Share with me…

    I saw this great post and i wanted to share to others…

  48. ares free download…

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose ares free download[...]……

Leave a Reply