|
33 |
To enable RFC1413-compliant logging of the remote user name for each
connection, where the client machine runs identd or something
similar. |
|
|
Default :
IdentityCheck off |
|
|
Version 1.3 + |
IdentityCheck on|off |
|
34 |
To define some directives that will be processed only if a certain
condition is true |
|
|
Default: None |
|
|
Version 1.3 + |
<IfDefine [!]parameter-name>
...
</IfDefine> |
|
|
Example :
# httpd.conf
<IfDefine ReverseProxy>
LoadModule rewrite_module
modules/mod_rewrite.so
LoadModule proxy_module modules/libproxy.so
</IfDefine> |
|
35 |
To define some directives that will be processed only if a certain
condition is true |
|
|
Default: None |
|
|
Version 1.2 + |
<IfModule [!]module-name>
...
</IfModule> |
|
36 |
To include other configuration files from within the server
configuration files. |
|
|
|
|
|
Version 1.3 +
Version 1.3.27 + with wildcards |
Include file-path|directory-path|wildcard-path |
|
|
Example :
Include
/usr/local/apache2/conf/ssl.conf
Include
/usr/local/apache2/conf/vhosts/*.conf
Include conf/ssl.conf
Include conf/vhosts/*.conf |
|
37 |
To provide long-lived HTTP sessions and allow multiple requests to
be sent over the same TCP connection. |
|
|
|
|
|
Version 1.1
Default : KeepAlive
5 |
KeepAlive
max-requests |
|
|
Version 1.2 +
Default :
KeepAlive On |
KeepAlive on|off |
|
38 |
To keep a connection open for a number of
seconds
before Apache close it. |
|
|
Default :
KeepAliveTimeout 15 |
|
|
Version 1.1 + |
KeepAliveTimeout
seconds |
|
39 |
To restrict the effect of the access controls to the nominated HTTP
methods |
|
|
|
|
|
Version 1.3+ |
<Limit method
[method]
... > ... </Limit> |
|
|
Example :
<Limit POST PUT DELETE>
Require valid-user
</Limit> |
|
40 |
To enclose a group of access control directives which will then
apply to any HTTP access method
not
listed in the arguments |
|
|
|
|
|
Version 1.3.5+ |
<LimitExcept method
[method]
... > ... </LimitExcept> |
|
|
Example :
<LimitExcept POST GET>
Require valid-user
</LimitExcept> |
|
41 |
To prevent the server from crashing when entering an infinite loop
of internal redirects or subrequests. |
|
|
Default :
LimitInternalRecursion 20 |
|
|
Version 1.3.28+ |
LimitInternalRecursion
number [number] |
|
|
Default :
LimitInternalRecursion 10 |
|
|
Version 2.0.47+ |
LimitInternalRecursion
number [number] |
|
42 |
To specify the number of
bytes that
is allowed in a request body.
0 (meaning unlimited) to 2147483647 (2GB) |
|
|
Default :
LimitRequestBody 0 |
|
|
Version 1.3.2+ |
LimitRequestBody
bytes |
|
43 |
To allow the server administrator to modify the limit on the number
of request header fields allowed in an HTTP request.
0 (meaning unlimited) to 32767. |
|
|
Default :
LimitRequestFields 100 |
|
|
Version 1.3.2+ |
LimitRequestFields
number |
|
44 |
To allow the server administrator to reduce the limit on the allowed
size of an HTTP request header field below the normal input buffer
size compiled with the server. |
|
|
Default :
LimitRequestFieldsize 8190 |
|
|
Version 1.3.2+ |
LimitRequestFieldsize
bytes |
|
45 |
To allow the server administrator to reduce the limit on the allowed
size of a client's HTTP request-line below the normal input buffer
size compiled with the server. |
|
|
Default :
LimitRequestLine 8190 |
|
|
Version 1.3.2+ |
LimitRequestLine
bytes |
|
8 |
To limit (in bytes) on maximum size of an XML-based request body. |
|
|
Default :
LimitXMLRequestBody 1000000 |
|
|
Version 2.0 + |
LimitXMLRequestBody
bytes |
|
46 |
To instruct Apache to listen to more than one IP address or port.
(can be used instead of
BindAddress) |
|
|
|
|
|
Version 1.1 |
Listen [IP-address:]port |
|
47 |
To specify the maximum length of the queue of pending connections. |
|
|
Default :
ListenBacklog 511 |
|
|
Version 1.2 |
ListenBacklog
backlog |
|
48 |
To provide for access control by URL. |
|
|
|
|
|
Version 1.1 + |
<Location URL-path|URL>
... </Location> |
|
|
Example :
<Location /status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from .foo.com
</Location> |
|
49 |
To provide for access control by URL, and takes a regular expression
as an argument instead of a simple string. |
|
|
|
|
|
Version 1.3+ |
<LocationMatch regex>
... </LocationMatch> |
|
|
Example :
<LocationMatch
"/(extra|special)/data"> |
|
50 |
To set the path to the lockfile. The main reason for changing it is
if the
logs directory is NFS
mounted. |
|
|
Default :
LockFile logs/accept.lock |
|
|
Version 1.3 |
LockFile file-path |
|
51 |
To adjust the verbosity of the messages recorded in the error logs. |
|
|
Default :
LogLevel warn |
|
|
Version 1.3+ |
LogLevel level |
|
|
|
Level
|
Description
|
Example
|
|
emerg
|
Emergencies -
system is unusable. |
"Child cannot
open lock file. Exiting" |
|
alert
|
Action must be
taken immediately. |
"getpwuid:
couldn't determine user name from uid" |
|
crit
|
Critical
Conditions. |
"socket: Failed
to get a socket, exiting child" |
|
error
|
Error conditions. |
"Premature end of
script headers" |
|
warn
|
Warning
conditions. |
"child process
1234 did not exit, sending another SIGHUP" |
|
notice
|
Normal but
significant condition. |
"httpd: caught
SIGBUS, attempting to dump core in ..." |
|
info
|
Informational. |
"Server seems
busy, (you may need to increase StartServers, or
Min/MaxSpareServers)..." |
|
debug
|
Debug-level
messages |
"Opening config
file ..." |
|
|
52 |
To set the limit on the number of simultaneous requests that can be
supported; not more than this number of child server processes will
be created. |
|
|
Default :
MaxClients 256 |
|
|
Version 1.3 |
MaxClients number |
|
53 |
To limit the number of requests allowed per connection when
KeepAlive is on. |
|
|
Default :
MaxKeepAliveRequests 100 |
|
|
Version 1.2+ |
MaxKeepAliveRequests
number |
|
54 |
To set the limit on the number of requests that an individual child
server process will handle.
( 0 means that the process will never expire) |
|
|
Default :
MaxRequestsPerChild 0 |
|
|
Version 1.3 |
MaxRequestsPerChild
number |
|
55 |
To set the desired maximum number of
idle child
server processes. |
|
|
Default :
MaxSpareServers 10 |
|
|
Version 1.3 |
MaxSpareServers
number |
|
56 |
To set the desired minimum number of
idle child
server processes. |
|
|
Default :
MinSpareServers 5 |
|
|
Version 1.3 |
MinSpareServers
number |
|
57 |
To configure name-based virtual hosts, NameVirtualHost must be used. |
|
|
|
|
|
Version 1.3+ |
NameVirtualHost addr[:port] |
|
|
Example :
NameVirtualHost 111.22.33.44
NameVirtualHost 111.22.33.44:8080
NameVirtualHost
[2001:db8::a00:20ff:fea7:ccea]:8080
NameVirtualHost * |
|
58 |
To control which server features are available in a particular
directory. |
|
|
|
|
|
Version 1.3+ |
Options [+|-]option
[[+|-]option]
... |
|
|
Example :
<Directory /web/docs>
Options Indexes FollowSymLinks
</Directory>
<Directory /web/docs/spec>
Options Includes
</Directory>
<Directory /web/docs>
Options Indexes FollowSymLinks
</Directory>
<Directory /web/docs/spec>
Options +Includes -Indexes
</Directory> |
|
59 |
To set the file to which the server records the process id of the
daemon. |
|
|
Default :
PidFile logs/httpd.pid |
|
|
Version 1.3 |
PidFile file-path |
|
60 |
* In the absence of any Listen or BindAddress directives Port
directive is used.
* To set the
SERVER_PORT
environment variable. |
|
|
Default :
Port 80 |
|
|
Version 1.3 |
Port number |
|
61 |
To enable strict checking of the Protocol field in the Request line. |
|
|
Default :
ProtocolReqCheck on |
|
|
Version 1.3.27 |
|