
Originally Posted by
desiguru
I did this by including highperformance.conf into the httpd.conf
As a general reference for others, the specified example configuration file is located at the following path:
Code:
/usr/local/apache/conf/highperformance.conf
If needing to customize MPM directives I recommend, as an alternative to the above, to use the provided configuration file that is specific to MPM directives (e.g., the Prefork MPM and customizing the directives ServerLimit and MaxClients); this example MPM configuration file is located at the following path that could, optionally, be included into your Apache configuration:
Code:
/usr/local/apache/conf/extra/httpd-mpm.conf
An example configuration entry that could be used to include one of the above may be as follows:
Code:
Include "/usr/local/apache/conf/extra/httpd-mpm.conf"
Additionally, new configuration directives, such as the above example "Include" line, may be added via our provided include files, as found via WHM at the following menu path where they may be configured:
WHM: Main >> Service Configuration >> Apache Configuration >> Include Editor
Documentation: IncludeEditor < AllDocumentation/WHMDocs < TWiki
The same include files are located in the following directory and paths:
Code:
/usr/local/apache/conf/includes
/usr/local/apache/conf/includes/errordocument.conf
/usr/local/apache/conf/includes/pre_main_global.conf
/usr/local/apache/conf/includes/pre_main_1.conf
/usr/local/apache/conf/includes/pre_main_2.conf
/usr/local/apache/conf/includes/pre_virtualhost_global.conf
/usr/local/apache/conf/includes/pre_virtualhost_1.conf
/usr/local/apache/conf/includes/pre_virtualhost_2.conf
/usr/local/apache/conf/includes/post_virtualhost_global.conf
/usr/local/apache/conf/includes/post_virtualhost_1.conf
/usr/local/apache/conf/includes/post_virtualhost_2.conf
For the include files with a number (1 or 2) in the file name, this directly relates to the version of Apache it would be used for (i.e., v1.x or v2.x); this makes it possible to define directives that may be compatible with only a certain version to load only with the applicable, matching major version of Apache, helping to reduce the likelihood of custom directives from causing compatibility issues if needing to switch between a major version of Apache.
Related Documentation:
ApacheConfig < AllDocumentation/WHMDocs < TWiki
SavingCustomOptions < EasyApache3 < TWiki