Forum Moderators: phranque

Message Too Old, No Replies

Httpd.conf - read from the top down?

         

Lastwords

10:31 am on Jul 2, 2007 (gmt 0)

10+ Year Member



Hi,

Does Apache use directives which are higher in the conf file? So if you have a two of the same directives like:

MaxRequestsPerChild 1000
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
ThreadsPerChild 25
MaxRequestsPerChild 0

The first setting for MaxRequestsPerChild 1000 directive is used by Apache and not MaxRequestsPerChild 0...?

Many thanks in advance

jdMorgan

6:03 pm on Jul 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In most cases, where directives are not enclosed in 'conditional' containers such as <Directory> or <Location>, I would expect that later directives would simply overwrite earlier ones.

Jim