User Tools

Site Tools


apache_configuration_centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apache_configuration_centos [2015/03/30 07:20] luke7858apache_configuration_centos [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
  
-<sxh bash>/etc/httpd/conf/httpd.conf</sxh> +=== Apache 2.4 Pre-fork configuration ===
 \\ \\
-=== Default vhost location === 
-<sxh bash>/etc/httpd/conf.d/*.conf</sxh> 
 \\ \\
-\\ +The default location for the settings in apache 2.4 are: /etc/httpd/conf.modules.d/00-mpm.conf 
-=== Changing the default vhost location === +<sxh bash
-<sxh bash>edit /etc/httpd/conf/httpd.conf</sxh> +<IfModule mpm_prefork_module> 
-\\ +    StartServers             5 
-You will need to add the following line in the config file to include another directory. Please replace vhost.d with your chosen vhost location +    MinSpareServers          5 
-<sxh bash>Include vhost.d/*.conf</sxh>+    MaxSpareServers         10 
 +    ServerLimit             25 
 +    MaxRequestWorkers       25 
 +    MaxConnectionsPerChild   0 
 +</IfModule> 
 +</sxh> 
 +Note: If ServerLimit is lower then MaxRequestWorkers then you will get the following error: 
 +<code> 
 +[root@apache ~]# httpd -t 
 +AH00180: WARNING: MaxRequestWorkers of 500 exceeds ServerLimit value of 
 + 256 servers, decreasing MaxRequestWorkers to 256. 
 + To increase, please see the ServerLimit directive. 
 +Syntax OK 
 +</code>
apache_configuration_centos.1427700009.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki