custom event-mpm settings using pre_main_global.conf
I am using the event mpm and need to change some settings. I have found this is not possible using home >> service configuration >> apache configuration >> global configuration. Why? Well, one scenario is :
ServerLimit 20
MaxRequestWorkers 500
If you enter these values in whm will complain about the maxclients value (server limit). So, you can add these in the pre_main_global.conf by using home >> service configuration >> apache configuration >> include editor.
In the include I have added :
StartServers 5
ServerLimit 20
MaxRequestWorkers 500
MaxConnectionsPerChild 20000
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
ThreadLimit 64
KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 100
most of which are defaults. Here is my question... are these values actually being used!? If you look in the /usr/local/apache/conf/httpd.conf file there are already defaults listed in the file such as :
# These can be set in WHM under 'Apache Global Configuration'
Timeout 300
TraceEnable Off
ServerSignature Off
ServerTokens ProductOnly
FileETag None
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MinSpareServers 5
MaxSpareServers 10
ServerLimit 20
MaxRequestWorkers 250
MaxConnectionsPerChild 20000
KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 100
well, the custom values I set in the include file are included at the top of this file (pre) so since these values come after that include in httpd.conf aren't they being overwritten?
Please sign in to leave a comment.
Comments
1 comment