|
1 |
To control a BSD specific filter optimization |
|
|
Default
AcceptFilter on |
|
|
Version 1.3 |
AcceptFilter on|off |
|
1 |
To control whether requests that contain trailing pathname
information that follows an actual filename will be accepted or
rejected. |
|
|
Default :
AcceptPathInfo Default |
|
|
Version 2.0.30+ |
AcceptPathInfo On|Off|Default |
|
2 |
To controls which accept() mutex method Apache will use |
|
|
Default
AcceptMutex default |
|
|
Version 1.3 |
AcceptMutex uslock|pthread |sysvsem|fcntl |flock|os2sem |tpfcore |none|default |
|
3 |
To specify a directory rather than a file name |
|
|
Default
AccessConfig conf/access.conf |
|
|
Version 1.3.13+ till 2.0 |
AccessConfig file-path|directory-path|wildcard-path |
|
4 |
To specify the access control file |
|
|
Default
AccessFileName .htaccess |
|
|
Version 1.3 + |
AccessFileName
filename [filename] |
|
|
Example :
AddDefaultCharset utf-8 |
|
5 |
To specify the name of the character set that will be added to any
response that does not have any parameter on the content type in the
HTTP headers |
|
|
Default
AddDefaultCharset Off |
|
|
Version 1.3.12 |
AddDefaultCharset On|Off|charset |
|
6 |
To enable Apache's internal default charset of
iso-8859-1 |
|
|
Default
AddDefaultCharset Off |
|
|
Version 1.3.12 |
AddDefaultCharset On |
|
7 |
To enable the use of modules that the server is already compiling
but they are not actively in use. |
|
|
|
|
|
Version 1.2 + |
AddModule module
[module]
.. |
|
2 |
To assigns an output filter to a particular MIME-type |
|
|
|
|
|
Version 2.0.33+ |
AddOutputFilterByType
filter[;filter...]
MIME-type
[MIME-type]
... |
|
|
Example :
AddOutputFilterByType DEFLATE
text/html text/plain |
|
3 |
To allow URLs which contain encoded path separators (%2F
for
/ and additionally
%5C for
\ on according
systems) to be used. |
|
|
Default :
AllowEncodedSlashes Off |
|
|
Version 2.0.46+ |
AllowEncodedSlashes On|Off |
|
8 |
To make the server know which directives declared in .htaccess file
can override earlier access information |
|
|
Default
AllowOverride All |
|
|
Version 1.3 + |
AllowOverride All|None|directive-type
[directive-type]
note: [directive-type]
are AuthConfig | FileInfo |Indexes | Limit | Options |
|
|
Example :
AllowOverride AuthConfig Indexes |
|
9 |
To set the name of the authorization realm for a directory. This
realm is given to the client so that the user knows which username
and password to send.
(note: use double quotation if the name contains spaces) |
|
|
|
|
|
Version 1.3+ |
AuthName auth-domain |
|
|
Example :
AuthName "Top Secret" |
|
10 |
To set a per realm secret nonce prefix which is used to ensure that
a captured username, password and realm string during a Digest
exchange cannot be replayed at other places. |
|
|
|
|
|
Version 1.3 |
AuthDigestRealmSeed
secret-real-string |
|
11 |
To select the type of user authentication for a directory |
|
|
|
|
|
Version 1.3+ |
AuthType Basic|Digest |
|
12 |
To specify whether the server should listen for connections to every
IP address of the server machine, or just one IP address of the
server machine |
|
|
Default
BindAddress * |
|
|
Version 1.3 & eliminated in 2.0 |
BindAddress *|IP-address|domain-name |
|
13 |
To define the account number for the non-privileged apache server
user |
|
|
Default none |
|
|
Version 1.3 |
BS2000Account
account |
|
14 |
|
|
|
Default CGICommandArgs On |
|
|
Version 1.3.24 + |
CGICommandArgs On|Off |
|
4 |
To control how Apache finds the interpreter used to run CGI scripts. |
|
|
|
|
|
Version 2.0
NetWare only |
CGIMapExtension
cgi-path
.extension |
|
|
Example :
CGIMapExtension sys:\foo.nlm .foo |
|
15 |
To clear the built-in list of active modules |
|
|
|
|
|
Version 1.2 |
ClearModuleList |
|
16 |
To generate the
Content-MD5 headers as
defined in RFC1864 respectively RFC2068. |
|
|
Default ContentDigest off |
|
|
Version 1.1 + |
ContentDigest on|off |
|
17 |
To define the directory to which Apache attempts to switch before
dumping core. |
|
|
Default The same location as ServerRoot |
|
|
Version 1.3 |
CoreDumpDirectory
directory-path |
|
18 |
When the server can't define the content-type of a document it uses
the
DefaultType provided. |
|
|
Default
DefaultType text/plain |
|
|
Version 1.3+ |
DefaultType
MIME-type |
|
|
Example :
DefaultType image/gif |
|
19 |
To enclose a group of directives which will apply only to the named
directory and sub-directories of that directory. |
|
|
|
|
|
Version 1.3 |
<Directory
directory-path|proxy:url-path>
... </Directory> |
|
|
Example :
<Directory
/usr/local/httpd/htdocs>
Options Indexes FollowSymLinks
</Directory>
Example :
<Directory proxy:*>
... directives here ...
</Directory>
|
|
|
Version 2.0 |
<Directory
directory-path>
... </Directory> |
|
|
Example :
<Directory /usr/local/httpd/htdocs>
Options Indexes FollowSymLinks
</Directory> |
|
20 |
To enclose a group of directives which will apply only to the named
directory and sub-directories of that directory AND it takes as an
argument a regular expression( ex. <DirectoryMatch
"^/www/.*/[0-9]{3}">) |
|
|
|
|
|
Version 1.3 + |
<DirectoryMatch
regex> ... </DirectoryMatch> |
|
|
Example :
<DirectoryMatch
"^/www/(.+/)?[0-9]{3}"> |
|
21 |
To set the directory from which httpd will serve files |
|
|
Default :
DocumentRoot
/usr/local/apache/htdocs |
|
|
Version 1.3 + |
DocumentRoot
directory-path |
|
|
Example :
DocumentRoot /usr/web |
|
22 |
To map the given file name extension to the specified conversion
setting (On or
Off). |
|
|
|
|
|
Version 1.3.19 |
EBCDICConvert On|Off[=direction]
extension
[extension]
... |
|
23 |
To map the given MIME type (optionally containing wildcards) to the
specified conversion setting (On
or Off). |
|
|
|
|
|
Version 1.3.19 |
EBCDICConvertByType On|Off[=direction]
mimetype
[mimetype]
... |
|
24 |
|
|
|
Default :
EBCDICKludge Off |
|
|
Version 1.3.19 |
EBCDICKludge On|Off |
|
25 |
To control whether or not an exception hook implemented by a module
will be called after a child process crash. |
|
|
Default :
EnableExceptionHook off |
|
|
Version 1.3.30 |
EnableExceptionHook on|off |
|
5 |
To control whether the
httpd may use
memory-mapping if it needs to read the contents of a file during
delivery. |
|
|
Default :
EnableMMAP On |
|
|
Version 2.0 |
EnableMMAP On|Off |
|
|
Example :
<Directory "/path-to-nfs-files">
EnableMMAP
Off
</Directory> |
|
6 |
To control whether
httpd may use the
sendfile support from the kernel to transmit file contents to the
client. |
|
|
Default :
EnableSendfile On |
|
|
Version 2.0.44 + |
EnableSendfile On|Off |
|
|
Example :
<Directory "/path-to-nfs-files">
EnableSendfile Off
</Directory>
|
|
26 |
To configure Apache to do one of the following things in the event
of a problem or error:
-
output a simple
hardcoded error message
-
output a customized
message
-
redirect to a local
URL-path to handle the problem/error
-
redirect to an
external URL to handle the problem/error
|
|
|
Default : output a simple hardcoded error message |
|
|
Versions 1.1 + |
ErrorDocument
error-code document |
|
27 |
To set the name of the file to which the server will log any errors
it encounters. |
|
|
Default :
ErrorLog logs/ |