httpd.conf priority
Hello,
Let say if I have two directives, one in httpd.conf and one in pre_main_global, which one take precedence here and which get ignore? I know that I can just delete one, but I'm really curious as to how this work. Thanks.
ServerLimit 40
StartServers 2
MaxClients 1000
MinSpareThreads 20
MaxSpareThreads 50
ThreadsPerChild 25
MaxRequestsPerChild 0
-
Hello :) You should actually not make direct edits to the /usr/local/apache/conf/httpd.conf file for those types of changes. The following documents should be helpful: How httpd.conf Is Processed Custom Directives Outside of a VirtualHost Tag Changes Contained Within a VirtualHost Directive Thank you. 0 -
Hi Michael Strange because i have in my pre_main_global: ServerLimit 26 StartServers 10 MaxClients 780 MinSpareThreads 15 MaxSpareThreads 35 ThreadsPerChild 30 MaxRequestsPerChild 1000 But when i restart apache i get: # /etc/init.d/httpd restart WARNING: MaxClients (1024) is not an integer multiple of ThreadsPerChild (30), lowering MaxClients to 1020 for a maximum of 34 child processes, WARNING: MaxClients (500) is not an integer multiple of ThreadsPerChild (30), lowering MaxClients to 480 for a maximum of 16 child processes, the 1024 value comes from WHM -> Apache Config -> Global the 500 value i have no clue where it comes from. Should't the include override those values? Cheers 0 -
Hello :) Please open a support ticket so we can take a closer look and review the settings configured on your system. You can post the ticket number here so we can update this thread with the outcome. Thanks. 0 -
Ticket 5111579 0 -
To update, the user was advised to disable some additional custom entries added to /usr/local/apache/conf/includes/post_virtualhost_global.conf to see if that makes a difference. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments