Multiple ServerRoot directives in single apache

Posted by fip on Server Fault See other posts from Server Fault or by fip
Published on 2012-10-03T12:28:21Z Indexed on 2012/10/04 21:41 UTC
Read the original article Hit count: 430

Filed under:
|
|

i came across a apache httpd 2.2 configuration recently in which multiple ServerRoot-directives were defined, each followed by individual prefork Settings.

Sort of like this:

ServerRoot root1
<IfModule prefork.c>
StartServers          5
MinSpareServers       5
MaxSpareServers      10
MaxClients          150
MaxRequestsPerChild   0
</IfModule>

[vhost-configs]


ServerRoot root2
<IfModule prefork.c>
StartServers         10
MinSpareServers      10
MaxSpareServers      20
MaxClients          250
MaxRequestsPerChild   0
</IfModule>

[vhost-configs]

In my understanding these are global settings one overriding the other. But is that true and is it still true with the second ServerRoot directive between the prefork blocks?

Thank you in advance

EDIT

They are not in different conditional blocks and both server roots are used in that way that files with relative paths to both are correctly included.

I just wondered if a <ServerRoot> would initiate a new scope in which all global statements would not override the configuration of previous ones.

© Server Fault or respective owner

Related posts about apache2

Related posts about config