[903] | 1 | ##
|
---|
| 2 | ## Server-Pool Size Regulation (MPM specific)
|
---|
| 3 | ##
|
---|
| 4 |
|
---|
| 5 | # the MPM (multiprocessing module) is not a dynamically loadable module in the
|
---|
| 6 | # sense of other modules. It is a compile time decision which one is used. We
|
---|
| 7 | # provide different apache2 MPM packages, containing different httpd2 binaries
|
---|
| 8 | # compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.
|
---|
| 9 |
|
---|
| 10 | # prefork MPM
|
---|
| 11 | <IfModule prefork.c>
|
---|
| 12 | # number of server processes to start
|
---|
| 13 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers
|
---|
| 14 | StartServers 5
|
---|
| 15 | # minimum number of server processes which are kept spare
|
---|
| 16 | # http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers
|
---|
| 17 | MinSpareServers 5
|
---|
| 18 | # maximum number of server processes which are kept spare
|
---|
| 19 | # http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers
|
---|
| 20 | MaxSpareServers 10
|
---|
| 21 | # highest possible MaxClients setting for the lifetime of the Apache process.
|
---|
| 22 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit
|
---|
| 23 | ServerLimit 150
|
---|
| 24 | # maximum number of server processes allowed to start
|
---|
| 25 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients
|
---|
| 26 | MaxClients 150
|
---|
| 27 | # maximum number of requests a server process serves
|
---|
| 28 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild
|
---|
| 29 | MaxRequestsPerChild 10000
|
---|
| 30 | </IfModule>
|
---|
| 31 |
|
---|
| 32 | # worker MPM
|
---|
| 33 | <IfModule worker.c>
|
---|
| 34 | # initial number of server processes to start
|
---|
| 35 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers
|
---|
| 36 | StartServers 3
|
---|
| 37 | # minimum number of worker threads which are kept spare
|
---|
| 38 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#minsparethreads
|
---|
| 39 | MinSpareThreads 25
|
---|
| 40 | # maximum number of worker threads which are kept spare
|
---|
| 41 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxsparethreads
|
---|
| 42 | MaxSpareThreads 75
|
---|
| 43 | # upper limit on the configurable number of threads per child process
|
---|
| 44 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadlimit
|
---|
| 45 | ThreadLimit 64
|
---|
| 46 | # maximum number of simultaneous client connections
|
---|
| 47 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients
|
---|
| 48 | MaxClients 150
|
---|
| 49 | # number of worker threads created by each child process
|
---|
| 50 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadsperchild
|
---|
| 51 | ThreadsPerChild 25
|
---|
| 52 | # maximum number of requests a server process serves
|
---|
| 53 | # http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild
|
---|
| 54 | MaxRequestsPerChild 10000
|
---|
| 55 | </IfModule>
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | #
|
---|
| 59 | # KeepAlive: Whether or not to allow persistent connections (more than
|
---|
| 60 | # one request per connection). Set to "Off" to deactivate.
|
---|
| 61 | #
|
---|
| 62 | KeepAlive On
|
---|
| 63 |
|
---|
| 64 | #
|
---|
| 65 | # MaxKeepAliveRequests: The maximum number of requests to allow
|
---|
| 66 | # during a persistent connection. Set to 0 to allow an unlimited amount.
|
---|
| 67 | # We recommend you leave this number high, for maximum performance.
|
---|
| 68 | #
|
---|
| 69 | MaxKeepAliveRequests 0
|
---|
| 70 |
|
---|
| 71 | #
|
---|
| 72 | # KeepAliveTimeout: Number of seconds to wait for the next request from the
|
---|
| 73 | # same client on the same connection.
|
---|
| 74 | #
|
---|
| 75 | KeepAliveTimeout 120
|
---|
| 76 |
|
---|
| 77 | #
|
---|
| 78 | # EnableMMAP: Control whether memory-mapping is used to deliver
|
---|
| 79 | # files (assuming that the underlying OS supports it).
|
---|
| 80 | # The default is on; turn this off if you serve from NFS-mounted
|
---|
| 81 | # filesystems. On some systems, turning it off (regardless of
|
---|
| 82 | # filesystem) can improve performance; for details, please see
|
---|
| 83 | # http://httpd.apache.org/docs-2.2/mod/core.html#enablemmap
|
---|
| 84 | #
|
---|
| 85 | #EnableMMAP off
|
---|
| 86 |
|
---|
| 87 | #
|
---|
| 88 | # EnableSendfile: Control whether the sendfile kernel support is
|
---|
| 89 | # used to deliver files (assuming that the OS supports it).
|
---|
| 90 | # The default is on; turn this off if you serve from NFS-mounted
|
---|
| 91 | # filesystems. Please see
|
---|
| 92 | # http://httpd.apache.org/docs-2.2/mod/core.html#enablesendfile
|
---|
| 93 | #
|
---|
| 94 | #EnableSendfile off
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 | #
|
---|
| 98 | # The following directives modify normal HTTP response behavior to
|
---|
| 99 | # handle known problems with browser implementations.
|
---|
| 100 | #
|
---|
| 101 | BrowserMatch "Mozilla/2" nokeepalive
|
---|
| 102 | BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
---|
| 103 | BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
---|
| 104 | BrowserMatch "Java/1\.0" force-response-1.0
|
---|
| 105 | BrowserMatch "JDK/1\.0" force-response-1.0
|
---|
| 106 |
|
---|
| 107 | #
|
---|
| 108 | # The following directive disables redirects on non-GET requests for
|
---|
| 109 | # a directory that does not include the trailing slash. This fixes a
|
---|
| 110 | # problem with Microsoft WebFolders which does not appropriately handle
|
---|
| 111 | # redirects for folders with DAV methods.
|
---|
| 112 | # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
|
---|
| 113 | #
|
---|
| 114 | BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
|
---|
| 115 | BrowserMatch "^WebDrive" redirect-carefully
|
---|
| 116 | BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
|
---|
| 117 | BrowserMatch "^gnome-vfs" redirect-carefully
|
---|
| 118 |
|
---|