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.
Hi…
It’s hard to find knowledgeable people on this topic, but you sound like you know what youfre talking about! Thanks…
Websites we think you should visit…
[...]although websites we backlink to below are considerably not related to ours, we feel they are actually worth a go through, so have a look[...]……
Sites we Like……
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……
Great Clips Coupons…
[...]following are a handful of hyper-links to online sites I always link to seeing that we think they will be well worth checking out[...]…
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 [...]……
Blogs ou should be reading…
[...]Here is a Great Blog You Might Find Interesting that we Encourage You[...]……
very nice site…
[...]Some truly nice stuff on this site, I enjoy it[...]…
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
Superb website…
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……
Check this out…
[...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]……
[...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
Hey…
very nice post, i certainly love this website, keep on it…
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….
Links…
[...]Sites of interest we have a link to[...]……
Websites you should visit…
[...]below you’ll find the link to some sites that we think you should visit[...]……
Links…
[...]Sites of interest we have a link to[...]……
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
Thanks you…
There are some interesting points in time in this article but I donft 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…
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…
Sources…
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……
Arigatou…
Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon….
közösségi portálok…
[...]just below, are some totally unrelated sites to ours, however, they are definitely worth checking out[...]…
Great website…
[...]we like to honor many other internet sites on the web, even if they aren’t linked to us, by linking to them. Under are some webpages worth checking out[...]……
Sites we Like……
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……
Thanks!…
Thanks for all your insight. This site has been really helpful to me….
[...]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[...]……
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
Cool sites…
[...]we came across a cool site that you might enjoy. Take a look if you want[...]……
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…
Cool sites…
[...]we came across a cool site that you might enjoy. Take a look if you want[...]……
Bonjour…
You should take part in a contest for one of the best blogs on the web. I will recommend this site!…
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….
Its hard to find good help…
I am regularly proclaiming that its difficult to get quality help, but here is…
Visitor recommendations…
[...]one of our visitors recently recommended the following website[...]……
Online Article……
[...]The information mentioned in the article are some of the best available [...]……
Related……
[...]just beneath, are numerous totally not related sites to ours, however, they are surely worth going over[...]……
Sources…
[...]check below, are some totally unrelated websites to ours, however, they are most trustworthy sources that we use[...]……
Thanks…
I want, this post. Thank you….
[...]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[...]……
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 [...]……
Online Articles…
[...]The information mentioned in the article are some of the best available [...]……
Awesome website…
[...]the time to read or visit the content or sites we have linked to below the[...]……
Read was interesting, stay in touch……
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]……
Coolest blog entry on earth!…
[...] Left you a trackback for your own followers to get more information and facts [...]…
[...] 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 [...]……
Wow!…
A very spectacular post….
very nice site…
[...]Some truly nice stuff on this internet site, I like it[...]…
open office…
[...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose open office[...]……
Cool writing…
[...]I am incessantly thought about this, regards for putting up.[...]…