]> git.pld-linux.org Git - packages/apache.git/blobdiff - apache-mpm.conf
Add EnableSendfile on. Prevent web clients from accessing htaccess files and backup...
[packages/apache.git] / apache-mpm.conf
index dfd322cb9a249a62312903c7956788f5caba9569..51cd43d19618d1f3f2b0f2a9d2305c9cb14b252b 100644 (file)
@@ -2,6 +2,11 @@
 # Server-Pool Management (MPM specific)
 #
 
+# MPM to use (only one at a time)
+LoadModule mpm_prefork_module                modules/mod_mpm_prefork.so
+#LoadModule mpm_worker_module                modules/mod_mpm_worker.so
+#LoadModule mpm_event_module                modules/mod_mpm_event.so
+
 #
 # PidFile: The file in which the server should record its process
 # identification number when it starts.
@@ -13,7 +18,7 @@ PidFile /var/run/httpd.pid
 #
 # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
 #
-LockFile /var/run/apache/accept.lock
+Mutex file:/var/run/httpd/
 
 #
 # Only one of the below sections will be relevant on your
@@ -25,29 +30,28 @@ LockFile /var/run/apache/accept.lock
 # StartServers: number of server processes to start
 # MinSpareServers: minimum number of server processes which are kept spare
 # MaxSpareServers: maximum number of server processes which are kept spare
-# MaxClients: maximum number of server processes allowed to start
-# MaxRequestsPerChild: maximum number of requests a server process serves
+# MaxRequestWorkers: maximum number of server processes allowed to start
+# MaxConnectionsPerChild: maximum number of requests a server process serves
 <IfModule mpm_prefork_module>
-    StartServers          5
-    MinSpareServers       5
-    MaxSpareServers      10
-    MaxClients          150
-    MaxRequestsPerChild   0
+       StartServers              5
+       MinSpareServers           5
+       MaxSpareServers          10
+       MaxRequestWorkers                       150
+       MaxConnectionsPerChild   0
 </IfModule>
 
 # worker MPM
 # StartServers: initial number of server processes to start
-# MaxClients: maximum number of simultaneous client connections
+# MaxRequestWorkers: maximum number of simultaneous client connections
 # MinSpareThreads: minimum number of worker threads which are kept spare
 # MaxSpareThreads: maximum number of worker threads which are kept spare
 # ThreadsPerChild: constant number of worker threads in each server process
-# MaxRequestsPerChild: maximum number of requests a server process serves
+# MaxConnectionsPerChild: maximum number of requests a server process serves
 <IfModule mpm_worker_module>
-    StartServers          2
-    MaxClients          150
-    MinSpareThreads      25
-    MaxSpareThreads      75
-    ThreadsPerChild      25
-    MaxRequestsPerChild   0
+       StartServers            2
+       MaxRequestWorkers                       150
+       MinSpareThreads         25
+       MaxSpareThreads         75
+       ThreadsPerChild         25
+       MaxConnectionsPerChild  0
 </IfModule>
-
This page took 0.046638 seconds and 4 git commands to generate.