From: Joshua Slive
+This Multi-Processing Module controls process and thread creation
+using the pthread interface.
+ Status: MPM
+ This Multi-Processing Module (MPM) is the default for most
+unix-like operating systems. It uses pthread system calls to create a
+hybrid multi-process multi-threaded server. The server starts a fixed
+number of processes. The server adjusts to handle load by increasing
+or decreasing the number of threads. Syntax:
+Default:
+Context: server config
+Module: dexter Whether or not to maintain status information on current
+connectionsMulti-Processing Module mpmt_pthread
+
+Source File: mpmt_pthread.c
+
+Module Identifier: mpm_mpmt_pthread_module
+Summary
+
+Directives
+
+
+
+
+ConnectionStatus directive
+
+Status: MPM
Syntax:
+Default:
+Context: server config
+Status: MPM
+Module: dexter
+ +Number of children alive at the same time.
+ +Syntax:
+Default:
+Context: server config
+Status: MPM
+Module: dexter
+ +Number of threads each child creates.
+ + + + diff --git a/docs/manual/mod/index.html b/docs/manual/mod/index.html index 81f79d7d75..6f7785d7af 100644 --- a/docs/manual/mod/index.html +++ b/docs/manual/mod/index.html @@ -29,9 +29,14 @@ directives.Group #-1
nobody
, but this is not always
+possible or desirable.+ +Note: if you start the server as a non-root user, it will fail to change +to the specified group, and will instead continue to run as the group of the +original user.
+ +Special note: Use of this directive in <VirtualHost> requires a +properly configured suEXEC wrapper. +When used inside a <VirtualHost> in this manner, only the group +that CGIs are run as is affected. Non-CGI requests are still processed +as the group specified in the main Group directive.
+ +SECURITY: See User for a discussion of the security +considerations.
The PidFile is subject to the same warnings about log file placement and
security. Syntax:
+Listen [IP address:]port number The Listen directive instructs Apache to listen to more than one IP
+address or port; by default it responds to requests on all IP
+interfaces, but only on the port given by the
+
+Note that you may still require a Port directive so
+that URLs that Apache generates that point to your server still
+work.
+
+Multiple Listen directives may be used
+to specify a number of addresses and ports to listen to. The server
+will respond to requests from any of the listed addresses and
+ports.
+
+
+For example, to make the server accept connections on both port
+80 and port 8000, use:
+ See Also:
+DNS Issues Syntax: ListenBacklog backlog The maximum length of the queue of pending connections. Generally no
+tuning is needed or desired, however on some systems it is desirable
+to increase this when under a TCP SYN flood attack. See
+the backlog parameter to the This will often be limited to a smaller number by the operating
+system. This varies from OS to OS. Also note that many OSes do not
+use exactly what is specified as the backlog, but use a number based on
+(but normally larger than) what is set.
+ Stopping and Restarting Apache Syntax: SendBufferSize bytes
-
+Listen directive
+
+Context: server config
+Status: MPM
+Module: mpmt_pthread, preforkPort
directive.
+ Listen 80
+ Listen 8000
+
+
+To make the server accept connections on two specified
+interfaces and port numbers, use
+
+ Listen 192.170.2.1:80
+ Listen 192.170.2.5:8000
+
+
+
+See Also:
+Setting which addresses and ports Apache uses
+See Also:
+Known Bugs
+
+
+ListenBacklog directive
+
+Default: ListenBacklog 511
+Context: server config
+Status: MPM
+Module: mpmt_pthread, preforklisten(2)
system call.
+
LockFile directive
+
+SendBufferSize directive
+
+
+Context: server config
+Status: MPM
+Module: mpmt_pthread, prefork
StartServers directive
@@ -394,7 +574,7 @@ on the load, there is usually little reason to adjust this parameter.
This directive sets the number of threads created by each child process.
+Syntax: User unix-userid
+Default: User #-1
+Context: server config, virtual host
+Status: core
+Compatibility: Removed in version 2.0.
+Module: mpmt_pthread, prefork
+ +The User directive sets the userid as which the server will answer requests. +In order to use this directive, the standalone server must be run initially +as root. Unix-userid is one of: +nobody
, but this is not always possible or desirable.
+For example mod_proxy's cache, when enabled, must be accessible to this user
+(see the CacheRoot
+directive).+ +Notes: If you start the server as a non-root user, it will fail to change +to the lesser privileged user, and will instead continue to run as +that original user. If you do start the server as root, then it is normal +for the parent process to remain running as root.
+ +Special note: Use of this directive in <VirtualHost> requires a +properly configured suEXEC wrapper. +When used inside a <VirtualHost> in this manner, only the user +that CGIs are run as is affected. Non-CGI requests are still processed +with the user specified in the main User directive.
+
+SECURITY: Don't set User (or Group) to
+root
unless you know exactly what you are doing, and what the
+dangers are.