Apache HTTP Server Version 2.4
The directive quick reference shows the usage, default, status, and context of each Apache configuration directive. For more information about each of these, see the Directive Dictionary.
The first column gives the directive name and usage. The second column shows the default value of the directive, if a default exists. If the default is too large to display, it will be truncated and followed by "+".
The third and fourth columns list the contexts where the directive is allowed and the status of the directive according to the legend tables below.
A | B | C | D | E | F | G | H | I | K | L | M | N | O | P | Q | R | S | T | U | V | W | X |
|
|
AcceptFilter protocol accept_filter | s | C | |
Configures optimizations for a Protocol's Listener Sockets | |||
AcceptPathInfo On|Off|Default | Default | svdh | C |
Resources accept trailing pathname information | |||
AccessFileName filename [filename] ... | .htaccess | sv | C |
Name of the distributed configuration file | |||
Action action-type cgi-script [virtual] | svdh | B | |
Activates a CGI script for a particular handler or content-type | |||
AddAlt string file [file] ... | svdh | B | |
Alternate text to display for a file, instead of an icon selected by filename | |||
AddAltByEncoding string MIME-encoding [MIME-encoding] ... | svdh | B | |
Alternate text to display for a file instead of an icon selected by MIME-encoding | |||
AddAltByType string MIME-type [MIME-type] ... | svdh | B | |
Alternate text to display for a file, instead of an icon selected by MIME content-type | |||
AddCharset charset extension [extension] ... | svdh | B | |
Maps the given filename extensions to the specified content charset | |||
AddDefaultCharset On|Off|charset | Off | svdh | C |
Default charset parameter to be added when a response
content-type is text/plain or text/html | |||
AddDescription string file [file] ... | svdh | B | |
Description to display for a file | |||
AddEncoding encoding extension [extension] ... | svdh | B | |
Maps the given filename extensions to the specified encoding type | |||
AddHandler handler-name extension [extension] ... | svdh | B | |
Maps the filename extensions to the specified handler | |||
AddIcon icon name [name] ... | svdh | B | |
Icon to display for a file selected by name | |||
AddIconByEncoding icon MIME-encoding [MIME-encoding] ... | svdh | B | |
Icon to display next to files selected by MIME content-encoding | |||
AddIconByType icon MIME-type [MIME-type] ... | svdh | B | |
Icon to display next to files selected by MIME content-type | |||
AddInputFilter filter[;filter...] extension [extension] ... | svdh | B | |
Maps filename extensions to the filters that will process client requests | |||
AddLanguage language-tag extension [extension] ... | svdh | B | |
Maps the given filename extension to the specified content language | |||
AddModuleInfo module-name string | sv | E | |
Adds additional information to the module information displayed by the server-info handler | |||
AddOutputFilter filter[;filter...] extension [extension] ... | svdh | B | |
Maps filename extensions to the filters that will process responses from the server | |||
AddOutputFilterByType filter[;filter...] media-type [media-type] ... | svdh | B | |
assigns an output filter to a particular media-type | |||
AddType media-type extension [extension] ... | svdh | B | |
Maps the given filename extensions onto the specified content type | |||
Alias [URL-path] file-path|directory-path | svd | B | |
Maps URLs to filesystem locations | |||
AliasMatch regex file-path|directory-path | sv | B | |
Maps URLs to filesystem locations using regular expressions | |||
AliasPreservePath OFF|ON | OFF | svd | B |
Map the full path after the alias in a location. | |||
Allow from all|host|env=[!]env-variable [host|env=[!]env-variable] ... | dh | E | |
Controls which hosts can access an area of the server | |||
AllowCONNECT port[-port] [port[-port]] ... | 443 563 | sv | E |
Ports that are allowed to CONNECT through the
proxy | |||
AllowEncodedSlashes On|Off|NoDecode | Off | sv | C |
Determines whether encoded path separators in URLs are allowed to be passed through | |||
AllowMethods reset|HTTP-method [HTTP-method]... | reset | d | X |
Restrict access to the listed HTTP methods | |||
AllowOverride All|None|directive-type [directive-type] ... | None (2.3.9 and lat + | d | C |
Types of directives that are allowed in
.htaccess files | |||
AllowOverrideList None|directive [directive-type] ... | None | d | C |
Individual directives that are allowed in
.htaccess files | |||
Anonymous user [user] ... | dh | E | |
Specifies userIDs that are allowed access without password verification | |||
Anonymous_LogEmail On|Off | On | dh | E |
Sets whether the password entered will be logged in the error log | |||
Anonymous_MustGiveEmail On|Off | On | dh | E |
Specifies whether blank passwords are allowed | |||
Anonymous_NoUserID On|Off | Off | dh | E |
Sets whether the userID field may be empty | |||
Anonymous_VerifyEmail On|Off | Off | dh | E |
Sets whether to check the password field for a correctly formatted email address | |||
AsyncRequestWorkerFactor factor | s | M | |
Limit concurrent connections per process | |||
AuthBasicAuthoritative On|Off | On | dh | B |
Sets whether authorization and authentication are passed to lower level modules | |||
AuthBasicFake off|username [password] | dh | B | |
Fake basic authentication using the given expressions for username and password | |||
AuthBasicProvider provider-name [provider-name] ... | file | dh | B |
Sets the authentication provider(s) for this location | |||
AuthBasicUseDigestAlgorithm MD5|Off | Off | dh | B |
Check passwords against the authentication providers as if Digest Authentication was in force instead of Basic Authentication. | |||
AuthDBDUserPWQuery query | d | E | |
SQL query to look up a password for a user | |||
AuthDBDUserRealmQuery query | d | E | |
SQL query to look up a password hash for a user and realm. | |||
AuthDBMGroupFile file-path | dh | E | |
Sets the name of the database file containing the list of user groups for authorization | |||
AuthDBMType default|SDBM|GDBM|NDBM|DB | default | dh | E |
Sets the type of database file that is used to store passwords | |||
AuthDBMUserFile file-path | dh | E | |
Sets the name of a database file containing the list of users and passwords for authentication | |||
AuthDigestAlgorithm MD5|MD5-sess | MD5 | dh | E |
Selects the algorithm used to calculate the challenge and response hashes in digest authentication | |||
AuthDigestDomain URI [URI] ... | dh | E | |
URIs that are in the same protection space for digest authentication | |||
AuthDigestNonceLifetime seconds | 300 | dh | E |
How long the server nonce is valid | |||
AuthDigestProvider provider-name [provider-name] ... | file | dh | E |
Sets the authentication provider(s) for this location | |||
AuthDigestQop none|auth|auth-int [auth|auth-int] | auth | dh | E |
Determines the quality-of-protection to use in digest authentication | |||
AuthDigestShmemSize size | 1000 | s | E |
The amount of shared memory to allocate for keeping track of clients | |||
AuthFormAuthoritative On|Off | On | dh | B |
Sets whether authorization and authentication are passed to lower level modules | |||
AuthFormBody fieldname | httpd_body | d | B |
The name of a form field carrying the body of the request to attempt on successful login | |||
AuthFormDisableNoStore On|Off | Off | d | B |
Disable the CacheControl no-store header on the login page | |||
AuthFormFakeBasicAuth On|Off | Off | d | B |
Fake a Basic Authentication header | |||
AuthFormLocation fieldname | httpd_location | d | B |
The name of a form field carrying a URL to redirect to on successful login | |||
AuthFormLoginRequiredLocation url | d | B | |
The URL of the page to be redirected to should login be required | |||
AuthFormLoginSuccessLocation url | d | B | |
The URL of the page to be redirected to should login be successful | |||
AuthFormLogoutLocation uri | d | B | |
The URL to redirect to after a user has logged out | |||
AuthFormMethod fieldname | httpd_method | d | B |
The name of a form field carrying the method of the request to attempt on successful login | |||
AuthFormMimetype fieldname | httpd_mimetype | d | B |
The name of a form field carrying the mimetype of the body of the request to attempt on successful login | |||
AuthFormPassword fieldname | httpd_password | d | B |
The name of a form field carrying the login password | |||
AuthFormProvider provider-name [provider-name] ... | file | dh | B |
Sets the authentication provider(s) for this location | |||
AuthFormSitePassphrase secret | d | B | |
Bypass authentication checks for high traffic sites | |||
AuthFormSize size | 8192 | d | B |
The largest size of the form in bytes that will be parsed for the login details | |||
AuthFormUsername fieldname | httpd_username | d | B |
The name of a form field carrying the login username | |||
AuthGroupFile file-path | dh | B | |
Sets the name of a text file containing the list of user groups for authorization | |||
AuthLDAPAuthorizePrefix prefix | AUTHORIZE_ | dh | E |
Specifies the prefix for environment variables set during authorization | |||
AuthLDAPBindAuthoritative off|on | on | dh | E |
Determines if other authentication providers are used when a user can be mapped to a DN but the server cannot successfully bind with the user's credentials. | |||
AuthLDAPBindDN distinguished-name | dh | E | |
Optional DN to use in binding to the LDAP server | |||
AuthLDAPBindPassword password | dh | E | |
Password used in conjunction with the bind DN | |||
AuthLDAPCharsetConfig file-path | s | E | |
Language to charset conversion configuration file | |||
AuthLDAPCompareAsUser on|off | off | dh | E |
Use the authenticated user's credentials to perform authorization comparisons | |||
AuthLDAPCompareDNOnServer on|off | on | dh | E |
Use the LDAP server to compare the DNs | |||
AuthLDAPDereferenceAliases never|searching|finding|always | always | dh | E |
When will the module de-reference aliases | |||
AuthLDAPGroupAttribute attribute | member uniqueMember + | dh | E |
LDAP attributes used to identify the user members of groups. | |||
AuthLDAPGroupAttributeIsDN on|off | on | dh | E |
Use the DN of the client username when checking for group membership | |||
AuthLDAPInitialBindAsUser off|on | off | dh | E |
Determines if the server does the initial DN lookup using the basic authentication users' own username, instead of anonymously or with hard-coded credentials for the server | |||
AuthLDAPInitialBindPattern regex substitution | (.*) $1 (remote use + | dh | E |
Specifies the transformation of the basic authentication username to be used when binding to the LDAP server to perform a DN lookup | |||
AuthLDAPMaxSubGroupDepth Number | 10 | dh | E |
Specifies the maximum sub-group nesting depth that will be evaluated before the user search is discontinued. | |||
AuthLDAPRemoteUserAttribute uid | dh | E | |
Use the value of the attribute returned during the user query to set the REMOTE_USER environment variable | |||
AuthLDAPRemoteUserIsDN on|off | off | dh | E |
Use the DN of the client username to set the REMOTE_USER environment variable | |||
AuthLDAPSearchAsUser on|off | off | dh | E |
Use the authenticated user's credentials to perform authorization searches | |||
AuthLDAPSubGroupAttribute attribute | member uniqueMember + | dh | E |
Specifies the attribute labels, one value per directive line, used to distinguish the members of the current group that are groups. | |||
AuthLDAPSubGroupClass LdapObjectClass | groupOfNames groupO + | dh | E |
Specifies which LDAP objectClass values identify directory objects that are groups during sub-group processing. | |||
AuthLDAPURL url [NONE|SSL|TLS|STARTTLS] | dh | E | |
URL specifying the LDAP search parameters | |||
AuthMerging Off | And | Or | Off | dh | B |
Controls the manner in which each configuration section's authorization logic is combined with that of preceding configuration sections. | |||
AuthName auth-domain | dh | B | |
Authorization realm for use in HTTP authentication | |||
AuthnCacheContext directory|server|custom-string | directory | d | B |
Specify a context string for use in the cache key | |||
AuthnCacheEnable | s | B | |
Enable Authn caching configured anywhere | |||
AuthnCacheProvideFor authn-provider [...] | dh | B | |
Specify which authn provider(s) to cache for | |||
AuthnCacheSOCache provider-name[:provider-args] | s | B | |
Select socache backend provider to use | |||
AuthnCacheTimeout timeout (seconds) | 300 (5 minutes) | dh | B |
Set a timeout for cache entries | |||
<AuthnProviderAlias baseProvider Alias> ... </AuthnProviderAlias> | s | B | |
Enclose a group of directives that represent an extension of a base authentication provider and referenced by the specified alias | |||
AuthnzFcgiCheckAuthnProvider provider-name|None
option ... | d | E | |
Enables a FastCGI application to handle the check_authn authentication hook. | |||
AuthnzFcgiDefineProvider type provider-name backend-address | s | E | |
Defines a FastCGI application as a provider for authentication and/or authorization | |||
AuthType None|Basic|Digest|Form | dh | B | |
Type of user authentication | |||
AuthUserFile file-path | dh | B | |
Sets the name of a text file containing the list of users and passwords for authentication | |||
AuthzDBDLoginToReferer On|Off | Off | d | E |
Determines whether to redirect the Client to the Referring
page on successful login or logout if a Referer request
header is present | |||
AuthzDBDQuery query | d | E | |
Specify the SQL Query for the required operation | |||
AuthzDBDRedirectQuery query | d | E | |
Specify a query to look up a login page for the user | |||
AuthzDBMType default|SDBM|GDBM|NDBM|DB | default | dh | E |
Sets the type of database file that is used to store list of user groups | |||
<AuthzProviderAlias baseProvider Alias Require-Parameters> ... </AuthzProviderAlias> | s | B | |
Enclose a group of directives that represent an extension of a base authorization provider and referenced by the specified alias | |||
AuthzSendForbiddenOnFailure On|Off | Off | dh | B |
Send '403 FORBIDDEN' instead of '401 UNAUTHORIZED' if authentication succeeds but authorization fails | |||
BalancerGrowth # | 5 | sv | E |
Number of additional Balancers that can be added Post-configuration | |||
BalancerInherit On|Off | On | sv | E |
Inherit ProxyPassed Balancers/Workers from the main server | |||
BalancerMember [balancerurl] url [key=value [key=value ...]] | d | E | |
Add a member to a load balancing group | |||
BalancerPersist On|Off | Off | sv | E |
Attempt to persist changes made by the Balancer Manager across restarts. | |||
BrotliAlterETag AddSuffix|NoChange|Remove | AddSuffix | sv | E |
How the outgoing ETag header should be modified during compression | |||
BrotliCompressionMaxInputBlock value | sv | E | |
Maximum input block size | |||
BrotliCompressionQuality value | 5 | sv | E |
Compression quality | |||
BrotliCompressionWindow value | 18 | sv | E |
Brotli sliding compression window size | |||
BrotliFilterNote [type] notename | sv | E | |
Places the compression ratio in a note for logging | |||
BrowserMatch regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
Sets environment variables conditional on HTTP User-Agent | |||
BrowserMatchNoCase regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
Sets environment variables conditional on User-Agent without respect to case | |||
BufferedLogs On|Off | Off | s | B |
Buffer log entries in memory before writing to disk | |||
BufferSize integer | 131072 | svdh | E |
Maximum size in bytes to buffer by the buffer filter | |||
CacheDefaultExpire seconds | 3600 (one hour) | svdh | E |
The default duration to cache a document when no expiry date is specified. | |||
CacheDetailHeader on|off | off | svdh | E |
Add an X-Cache-Detail header to the response. | |||
CacheDirLength length | 2 | sv | E |
The number of characters in subdirectory names | |||
CacheDirLevels levels | 2 | sv | E |
The number of levels of subdirectories in the cache. | |||
CacheDisable url-string | on | svdh | E | |
Disable caching of specified URLs | |||
CacheEnable cache_type [url-string] | svd | E | |
Enable caching of specified URLs using a specified storage manager | |||
CacheFile file-path [file-path] ... | s | X | |
Cache a list of file handles at startup time | |||
CacheHeader on|off | off | svdh | E |
Add an X-Cache header to the response. | |||
CacheIgnoreCacheControl On|Off | Off | sv | E |
Ignore request to not serve cached content to client | |||
CacheIgnoreHeaders header-string [header-string] ... | None | sv | E |
Do not store the given HTTP header(s) in the cache. | |||
CacheIgnoreNoLastMod On|Off | Off | svdh | E |
Ignore the fact that a response has no Last Modified header. | |||
CacheIgnoreQueryString On|Off | Off | sv | E |
Ignore query string when caching | |||
CacheIgnoreURLSessionIdentifiers identifier [identifier] ... | None | sv | E |
Ignore defined session identifiers encoded in the URL when caching | |||
CacheKeyBaseURL URL | sv | E | |
Override the base URL of reverse proxied cache keys. | |||
CacheLastModifiedFactor float | 0.1 | svdh | E |
The factor used to compute an expiry date based on the LastModified date. | |||
CacheLock on|off | off | sv | E |
Enable the thundering herd lock. | |||
CacheLockMaxAge integer | 5 | sv | E |
Set the maximum possible age of a cache lock. | |||
CacheLockPath directory | /tmp/mod_cache-lock + | sv | E |
Set the lock path directory. | |||
CacheMaxExpire seconds | 86400 (one day) | svdh | E |
The maximum time in seconds to cache a document | |||
CacheMaxFileSize bytes | 1000000 | svdh | E |
The maximum size (in bytes) of a document to be placed in the cache | |||
CacheMinExpire seconds | 0 | svdh | E |
The minimum time in seconds to cache a document | |||
CacheMinFileSize bytes | 1 | svdh | E |
The minimum size (in bytes) of a document to be placed in the cache | |||
CacheNegotiatedDocs On|Off | Off | sv | B |
Allows content-negotiated documents to be cached by proxy servers | |||
CacheQuickHandler on|off | on | sv | E |
Run the cache from the quick handler. | |||
CacheReadSize bytes | 0 | svdh | E |
The minimum size (in bytes) of the document to read and be cached before sending the data downstream | |||
CacheReadTime milliseconds | 0 | svdh | E |
The minimum time (in milliseconds) that should elapse while reading before data is sent downstream | |||
CacheRoot directory | sv | E | |
The directory root under which cache files are stored | |||
CacheSocache type[:args] | sv | E | |
The shared object cache implementation to use | |||
CacheSocacheMaxSize bytes | 102400 | svdh | E |
The maximum size (in bytes) of an entry to be placed in the cache | |||
CacheSocacheMaxTime seconds | 86400 | svdh | E |
The maximum time (in seconds) for a document to be placed in the cache | |||
CacheSocacheMinTime seconds | 600 | svdh | E |
The minimum time (in seconds) for a document to be placed in the cache | |||
CacheSocacheReadSize bytes | 0 | svdh | E |
The minimum size (in bytes) of the document to read and be cached before sending the data downstream | |||
CacheSocacheReadTime milliseconds | 0 | svdh | E |
The minimum time (in milliseconds) that should elapse while reading before data is sent downstream | |||
CacheStaleOnError on|off | on | svdh | E |
Serve stale content in place of 5xx responses. | |||
CacheStoreExpired On|Off | Off | svdh | E |
Attempt to cache responses that the server reports as expired | |||
CacheStoreNoStore On|Off | Off | svdh | E |
Attempt to cache requests or responses that have been marked as no-store. | |||
CacheStorePrivate On|Off | Off | svdh | E |
Attempt to cache responses that the server has marked as private | |||
CGIDScriptTimeout time[s|ms] | svdh | B | |
The length of time to wait for more output from the CGI program | |||
CGIMapExtension cgi-path .extension | dh | C | |
Technique for locating the interpreter for CGI scripts | |||
CGIPassAuth On|Off | Off | dh | C |
Enables passing HTTP authorization headers to scripts as CGI variables | |||
CGIScriptTimeout time[s|ms] | svdh | B | |
The length of time to wait for more output from the CGI program | |||
CGIVar variable rule | dh | C | |
Controls how some CGI variables are set | |||
CharsetDefault charset | svdh | E | |
Charset to translate into | |||
CharsetOptions option [option] ... | ImplicitAdd | svdh | E |
Configures charset translation behavior | |||
CharsetSourceEnc charset | svdh | E | |
Source charset of files | |||
CheckBasenameMatch on|off | On | svdh | E |
Also match files with differing file name extensions. | |||
CheckCaseOnly on|off | Off | svdh | E |
Limits the action of the speling module to case corrections | |||
CheckSpelling on|off | Off | svdh | E |
Enables the spelling module | |||
ChrootDir /path/to/directory | s | B | |
Directory for apache to run chroot(8) after startup. | |||
ContentDigest On|Off | Off | svdh | C |
Enables the generation of Content-MD5 HTTP Response
headers | |||
CookieDomain domain | svdh | E | |
The domain to which the tracking cookie applies | |||
CookieExpires expiry-period | svdh | E | |
Expiry time for the tracking cookie | |||
CookieHTTPOnly on|off | off | svdh | E |
Adds the 'HTTPOnly' attribute to the cookie | |||
CookieName token | Apache | svdh | E |
Name of the tracking cookie | |||
CookieSameSite None|Lax|Strict | svdh | E | |
Adds the 'SameSite' attribute to the cookie | |||
CookieSecure on|off | off | svdh | E |
Adds the 'Secure' attribute to the cookie | |||
CookieStyle Netscape|Cookie|Cookie2|RFC2109|RFC2965 | Netscape | svdh | E |
Format of the cookie header field | |||
CookieTracking on|off | off | svdh | E |
Enables tracking cookie | |||
CoreDumpDirectory directory | s | M | |
Directory where Apache HTTP Server attempts to switch before dumping core | |||
CustomLog file|pipe format|nickname [env=[!]environment-variable| expr=expression] | sv | B | |
Sets filename and format of log file | |||
Dav On|Off|provider-name | Off | d | E |
Enable WebDAV HTTP methods | |||
DavBasePath root-path | d | E | |
Configure repository root path | |||
DavDepthInfinity on|off | off | svd | E |
Allow PROPFIND, Depth: Infinity requests | |||
DavGenericLockDB file-path | svd | E | |
Location of the DAV lock database | |||
DavLockDB file-path | sv | E | |
Location of the DAV lock database | |||
DavLockDiscovery on|off | on | svdh | E |
Enable lock discovery | |||
DavMinTimeout seconds | 0 | svd | E |
Minimum amount of time the server holds a lock on a DAV resource | |||
DBDExptime time-in-seconds | 300 | sv | E |
Keepalive time for idle connections | |||
DBDInitSQL "SQL statement" | sv | E | |
Execute an SQL statement after connecting to a database | |||
DBDKeep number | 2 | sv | E |
Maximum sustained number of connections | |||
DBDMax number | 10 | sv | E |
Maximum number of connections | |||
DBDMin number | 1 | sv | E |
Minimum number of connections | |||
DBDParams param1=value1[,param2=value2] | sv | E | |
Parameters for database connection | |||
DBDPersist On|Off | sv | E | |
Whether to use persistent connections | |||
DBDPrepareSQL "SQL statement" label | sv | E | |
Define an SQL prepared statement | |||
DBDriver name | sv | E | |
Specify an SQL driver | |||
DefaultIcon url-path | svdh | B | |
Icon to display for files when no specific icon is configured | |||
DefaultLanguage language-tag | svdh | B | |
Defines a default language-tag to be sent in the Content-Language header field for all resources in the current context that have not been assigned a language-tag by some other means. | |||
DefaultRuntimeDir directory-path | DEFAULT_REL_RUNTIME + | s | C |
Base directory for the server run-time files | |||
DefaultType media-type|none | none | svdh | C |
This directive has no effect other than to emit warnings
if the value is not none . In prior versions, DefaultType
would specify a default media type to assign to response content for
which no other media type configuration could be found.
| |||
Define parameter-name [parameter-value] | svd | C | |
Define a variable | |||
DeflateAlterETag AddSuffix|NoChange|Remove | AddSuffix | sv | E |
How the outgoing ETag header should be modified during compression | |||
DeflateBufferSize value | 8096 | sv | E |
Fragment size to be compressed at one time by zlib | |||
DeflateCompressionLevel value | sv | E | |
How much compression do we apply to the output | |||
DeflateFilterNote [type] notename | sv | E | |
Places the compression ratio in a note for logging | |||
DeflateInflateLimitRequestBody value | svdh | E | |
Maximum size of inflated request bodies | |||
DeflateInflateRatioBurst value | 3 | svdh | E |
Maximum number of times the inflation ratio for request bodies can be crossed | |||
DeflateInflateRatioLimit value | 200 | svdh | E |
Maximum inflation ratio for request bodies | |||
DeflateMemLevel value | 9 | sv | E |
How much memory should be used by zlib for compression | |||
DeflateWindowSize value | 15 | sv | E |
Zlib compression window size | |||
Deny from all|host|env=[!]env-variable [host|env=[!]env-variable] ... | dh | E | |
Controls which hosts are denied access to the server | |||
<Directory directory-path> ... </Directory> | sv | C | |
Enclose a group of directives that apply only to the named file-system directory, sub-directories, and their contents. | |||
DirectoryCheckHandler On|Off | Off | svdh | B |
Toggle how this module responds when another handler is configured | |||
DirectoryIndex disabled | local-url [local-url] ... | index.html | svdh | B |
List of resources to look for when the client requests a directory | |||
DirectoryIndexRedirect on | off | permanent | temp | seeother | 3xx-code | off | svdh | B |
Configures an external redirect for directory indexes. | |||
<DirectoryMatch regex> ... </DirectoryMatch> | sv | C | |
Enclose directives that apply to the contents of file-system directories matching a regular expression. | |||
DirectorySlash On|Off | On | svdh | B |
Toggle trailing slash redirects on or off | |||
DocumentRoot directory-path | "/usr/local/apache/ + | sv | C |
Directory that forms the main document tree visible from the web | |||
DTracePrivileges On|Off | Off | s | X |
Determines whether the privileges required by dtrace are enabled. | |||
DumpIOInput On|Off | Off | s | E |
Dump all input data to the error log | |||
DumpIOOutput On|Off | Off | s | E |
Dump all output data to the error log | |||
<Else> ... </Else> | svdh | C | |
Contains directives that apply only if the condition of a
previous <If> or
<ElseIf> section is not
satisfied by a request at runtime | |||
<ElseIf expression> ... </ElseIf> | svdh | C | |
Contains directives that apply only if a condition is satisfied
by a request at runtime while the condition of a previous
<If> or
<ElseIf> section is not
satisfied | |||
EnableExceptionHook On|Off | Off | s | M |
Enables a hook that runs exception handlers after a crash | |||
EnableMMAP On|Off | On | svdh | C |
Use memory-mapping to read files during delivery | |||
EnableSendfile On|Off | Off | svdh | C |
Use the kernel sendfile support to deliver files to the client | |||
Error message | svdh | C | |
Abort configuration parsing with a custom error message | |||
ErrorDocument error-code document | svdh | C | |
What the server will return to the client in case of an error | |||
ErrorLog file-path|syslog[:[facility][:tag]] | logs/error_log (Uni + | sv | C |
Location where the server will log errors | |||
ErrorLogFormat [connection|request] format | sv | C | |
Format specification for error log entries | |||
Example | svdh | X | |
Demonstration directive to illustrate the Apache module API | |||
ExpiresActive On|Off | Off | svdh | E |
Enables generation of Expires
headers | |||
ExpiresByType MIME-type <code>seconds | svdh | E | |
Value of the Expires header configured
by MIME type | |||
ExpiresDefault <code>seconds | svdh | E | |
Default algorithm for calculating expiration time | |||
ExtendedStatus On|Off | Off[*] | s | C |
Keep track of extended status information for each request | |||
ExtFilterDefine filtername parameters | s | E | |
Define an external filter | |||
ExtFilterOptions option [option] ... | NoLogStderr | d | E |
Configure mod_ext_filter options | |||
FallbackResource disabled | local-url | svdh | B | |
Define a default URL for requests that don't map to a file | |||
FileETag component ... | MTime Size | svdh | C |
File attributes used to create the ETag HTTP response header for static files | |||
<Files filename> ... </Files> | svdh | C | |
Contains directives that apply to matched filenames | |||
<FilesMatch regex> ... </FilesMatch> | svdh | C | |
Contains directives that apply to regular-expression matched filenames | |||
FilterChain [+=-@!]filter-name ... | svdh | B | |
Configure the filter chain | |||
FilterDeclare filter-name [type] | svdh | B | |
Declare a smart filter | |||
FilterProtocol filter-name [provider-name] proto-flags | svdh | B | |
Deal with correct HTTP protocol handling | |||
FilterProvider filter-name provider-name expression | svdh | B | |
Register a content filter | |||
FilterTrace filter-name level | svd | B | |
Get debug/diagnostic information from
mod_filter | |||
FlushMaxPipelined number | 5 | sv | C |
Maximum number of pipelined responses above which they are flushed to the network | |||
FlushMaxThreshold number-of-bytes | 65535 | sv | C |
Threshold above which pending data are flushed to the network | |||
ForceLanguagePriority None|Prefer|Fallback [Prefer|Fallback] | Prefer | svdh | B |
Action to take if a single acceptable document is not found | |||
ForceType media-type|None | dh | C | |
Forces all matching files to be served with the specified media type in the HTTP Content-Type header field | |||
ForensicLog filename|pipe | sv | E | |
Sets filename of the forensic log | |||
GlobalLogfile|pipe format|nickname [env=[!]environment-variable| expr=expression] | s | B | |
Sets filename and format of log file | |||
GprofDir /tmp/gprof/|/tmp/gprof/% | sv | C | |
Directory to write gmon.out profiling data to. | |||
GracefulShutdownTimeout seconds | 0 | s | M |
Specify a timeout after which a gracefully shutdown server will exit. | |||
Group unix-group | #-1 | s | B |
Group under which the server will answer requests | |||
H2CopyFiles on|off | off | svdh | E |
Determine file handling in responses | |||
H2Direct on|off | on for h2c, off for + | sv | E |
H2 Direct Protocol Switch | |||
H2EarlyHint name value | svdh | E | |
Add a response header to be picked up in 103 Early Hints | |||
H2EarlyHints on|off | off | sv | E |
Determine sending of 103 status codes | |||
H2MaxDataFrameLen n | 0 | sv | E |
Maximum bytes inside a single HTTP/2 DATA frame | |||
H2MaxSessionStreams n | 100 | sv | E |
Maximum number of active streams per HTTP/2 session. | |||
H2MaxWorkerIdleSeconds n | 600 | s | E |
Maximum number of seconds h2 workers remain idle until shut down. | |||
H2MaxWorkers n | s | E | |
Maximum number of worker threads to use per child process. | |||
H2MinWorkers n | s | E | |
Minimal number of worker threads to use per child process. | |||
H2ModernTLSOnly on|off | on | sv | E |
Require HTTP/2 connections to be "modern TLS" only | |||
H2OutputBuffering on|off | on | sv | E |
Determine buffering behaviour of output | |||
H2Padding numbits | 0 | sv | E |
Determine the range of padding bytes added to payload frames | |||
H2ProxyRequests on|off | off | sv | E |
En-/Disable forward proxy requests via HTTP/2 | |||
H2Push on|off | on | svdh | E |
H2 Server Push Switch | |||
H2PushDiarySize n | 256 | sv | E |
H2 Server Push Diary Size | |||
H2PushPriority mime-type [after|before|interleaved] [weight] | * After 16 | sv | E |
H2 Server Push Priority | |||
H2PushResource [add] path [critical] | svdh | E | |
Declares resources for early pushing to the client | |||
H2SerializeHeaders on|off | off | sv | E |
Serialize Request/Response Processing Switch | |||
H2StreamMaxMemSize bytes | 65536 | sv | E |
Maximum amount of output data buffered per stream. | |||
H2StreamTimeout time-interval[s] | svd | E | |
Maximum time waiting when sending/receiving data to stream processing | |||
H2TLSCoolDownSecs seconds | 1 | sv | E |
Configure the number of seconds of idle time on TLS before shrinking writes | |||
H2TLSWarmUpSize amount | 1048576 | sv | E |
Configure the number of bytes on TLS connection before doing max writes | |||
H2Upgrade on|off | on for h2c, off for + | svdh | E |
H2 Upgrade Protocol Switch | |||
H2WebSockets on|off | off | sv | E |
En-/Disable WebSockets via HTTP/2 | |||
H2WindowSize bytes | 65535 | sv | E |
Size of Stream Window for upstream data. | |||
Header [condition] add|append|echo|edit|edit*|merge|set|setifempty|unset|note header [[expr=]value [replacement] [early|env=[!]varname|expr=expression]] | svdh | E | |
Configure HTTP response headers | |||
HeaderName filename | svdh | B | |
Name of the file that will be inserted at the top of the index listing | |||
HeartbeatAddress addr:port | s | X | |
Multicast address for heartbeat packets | |||
HeartbeatListen addr:port | s | X | |
multicast address to listen for incoming heartbeat requests | |||
HeartbeatMaxServers number-of-servers | 10 | s | X |
Specifies the maximum number of servers that will be sending heartbeat requests to this server | |||
HeartbeatStorage file-path | logs/hb.dat | s | X |
Path to store heartbeat data when using flat-file storage | |||
HeartbeatStorage file-path | logs/hb.dat | s | X |
Path to read heartbeat data | |||
HostnameLookups On|Off|Double | Off | svd | C |
Enables DNS lookups on client IP addresses | |||
HttpProtocolOptions [Strict|Unsafe] [RegisteredMethods|LenientMethods] [Allow0.9|Require1.0] | Strict LenientMetho + | sv | C |
Modify restrictions on HTTP Request Messages | |||
IdentityCheck On|Off | Off | svd | E |
Enables logging of the RFC 1413 identity of the remote user | |||
IdentityCheckTimeout seconds | 30 | svd | E |
Determines the timeout duration for ident requests | |||
<If expression> ... </If> | svdh | C | |
Contains directives that apply only if a condition is satisfied by a request at runtime | |||
<IfDefine [!]parameter-name> ... </IfDefine> | svdh | C | |
Encloses directives that will be processed only if a test is true at startup | |||
<IfDirective [!]directive-name> ... </IfDirective> | svdh | C | |
Encloses directives that are processed conditional on the presence or absence of a specific directive | |||
<IfFile [!]filename> ... </IfFile> | svdh | C | |
Encloses directives that will be processed only if file exists at startup | |||
<IfModule [!]module-file|module-identifier> ... </IfModule> | svdh | C | |
Encloses directives that are processed conditional on the presence or absence of a specific module | |||
<IfSection [!]section-name> ... </IfSection> | svdh | C | |
Encloses directives that are processed conditional on the presence or absence of a specific section directive | |||
<IfVersion [[!]operator] version> ... </IfVersion> | svdh | E | |
contains version dependent configuration | |||
ImapBase map|referer|URL | http://servername/ | svdh | B |
Default base for imagemap files | |||
ImapDefault error|nocontent|map|referer|URL | nocontent | svdh | B |
Default action when an imagemap is called with coordinates that are not explicitly mapped | |||
ImapMenu none|formatted|semiformatted|unformatted | formatted | svdh | B |
Action if no coordinates are given when calling an imagemap | |||
Include file-path|directory-path|wildcard | svd | C | |
Includes other configuration files from within the server configuration files | |||