The following directives are allowed in any .htaccess file, as long as
overrides are enabled in the server configuration.
Maximum size of inflated request bodies
Maximum number of times the inflation ratio for request bodies
can be crossed
Maximum inflation ratio for request bodies
Contains directives that apply only if the condition of a
previous
<If> or
<ElseIf> section is not
satisfied by a request at runtime
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
Contains directives that apply to matched
filenames
Contains directives that apply to regular-expression matched
filenames
Contains directives that apply only if a condition is
satisfied by a request at runtime
Encloses directives that will be processed only
if a test is true at startup
Encloses directives that are processed conditional on the
presence or absence of a specific directive
Encloses directives that will be processed only
if file exists at startup
Encloses directives that are processed conditional on the
presence or absence of a specific module
Encloses directives that are processed conditional on the
presence or absence of a specific section directive
contains version dependent configuration
Restricts the total size of the HTTP request body sent
from the client
Limits the size of an XML-based request body
Enable tracking of time to first byte (TTFB)
Configure the compiled code cache.
Provide a hook for the access_checker phase of request processing
Provide a hook for the auth_checker phase of request processing
Provide a hook for the check_user_id phase of request processing
Provide a hook for the fixups phase of a request
processing
Provide a hook for the insert_filter phase of request processing
Provide a hook for the access log phase of a request
processing
Provide a hook for the map_to_storage phase of request processing
Provide a hook for the pre_translate phase of a request
processing
Provide a hook for the translate name phase of request processing
Provide a hook for the type_checker phase of request processing
Controls how parent configuration sections are merged into children
Map a path to a lua handler
Add a directory to lua's package.cpath
Add a directory to lua's package.path
Provide a hook for the quick handler of request processing
Specify the base path for resolving relative paths for
mod_lua directives
One of once, request, conn, thread -- default is once
Limits the CPU consumption of processes launched
by Apache httpd children
Limits the memory consumption of processes launched
by Apache httpd children
Limits the number of processes that can be launched by
processes launched by Apache httpd children
Configures the footer on server-generated documents
Error message displayed when there is an SSI
error
Configures the format in which date strings are
displayed
String displayed when an unset variable is echoed
The following directives are allowed in .htaccess files when
AllowOverride AuthConfig is in effect. They give .htaccess
users control over the authentication and authorization methods that are
applied to their directory subtrees, including several related utility
directives for session handling and TLS settings.
Specifies userIDs that are allowed access without
password verification
Sets whether the password entered will be logged in the
error log
Specifies whether blank passwords are allowed
Sets whether the userID field may be empty
Sets whether to check the password field for a correctly
formatted email address
Sets whether authorization and authentication are passed to
lower level modules
Fake basic authentication using the given expressions for
username and password
Sets the authentication provider(s) for this location
Check passwords against the authentication providers as if
Digest Authentication was in force instead of Basic Authentication.
Sets the name of the database file containing the list
of user groups for authorization
Sets the type of database file that is used to
store passwords
Sets the name of a database file containing the list of users and
passwords for authentication
Selects the algorithm used to calculate the challenge and
response hashes in digest authentication
URIs that are in the same protection space for digest
authentication
How long the server nonce is valid
Sets the authentication provider(s) for this location
Determines the quality-of-protection to use in digest
authentication
Sets whether authorization and authentication are passed to
lower level modules
Sets the authentication provider(s) for this location
Sets the name of a text file containing the list
of user groups for authorization
Specifies the prefix for environment variables set during
authorization
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.
Optional DN to use in binding to the LDAP server
Password used in conjunction with the bind DN
Use the authenticated user's credentials to perform authorization comparisons
Use the LDAP server to compare the DNs
When will the module de-reference aliases
LDAP attributes used to identify the user members of
groups.
Use the DN of the client username when checking for
group membership
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
Specifies the transformation of the basic authentication username to be used when binding to the LDAP server
to perform a DN lookup
Specifies the maximum sub-group nesting depth that will be
evaluated before the user search is discontinued.
Use the value of the attribute returned during the user
query to set the REMOTE_USER environment variable
Use the DN of the client username to set the REMOTE_USER
environment variable
Use the authenticated user's credentials to perform authorization searches
Specifies the attribute labels, one value per
directive line, used to distinguish the members of the current group that
are groups.
Specifies which LDAP objectClass values identify directory
objects that are groups during sub-group processing.
URL specifying the LDAP search parameters
Controls the manner in which each configuration section's
authorization logic is combined with that of preceding configuration
sections.
Authorization realm for use in HTTP
authentication
Specify which authn provider(s) to cache for
Set a timeout for cache entries
Type of user authentication
Sets the name of a text file containing the list of users and
passwords for authentication
Sets the type of database file that is used to
store list of user groups
Enables passing HTTP authorization headers to scripts as CGI
variables
The maximum number of referral hops to chase before terminating an LDAP query.
Enable referral chasing during queries to the LDAP server.
Restrict enclosed access controls to only certain HTTP
methods
Restrict access controls to all HTTP methods
except the named ones
Tests whether an authenticated user is authorized by
an authorization provider.
Enclose a group of authorization directives of which none
must fail and at least one must succeed for the enclosing directive to
succeed.
Enclose a group of authorization directives of which one
must succeed for the enclosing directive to succeed.
Enclose a group of authorization directives of which none
must succeed for the enclosing directive to not fail.
Interaction between host-level access control and
user authentication
Enables a session for the current directory or location
Control whether the contents of the session are written to the
HTTP_SESSION environment variable
Import session updates from a given HTTP response header
Define URL prefixes for which a session is valid
Define a maximum age in seconds for a session
Cipher Suite available for negotiation in SSL
handshake
Set the size for the SSL renegotiation buffer
Allow access only when an arbitrarily complex
boolean expression is true
Deny access when SSL is not used for the
HTTP request
Variable name to determine user name
Type of Client Certificate verification
Maximum depth of CA Certificates in Client
Certificate verification
The following directives are allowed in .htaccess files when
AllowOverride FileInfo is in effect. They give .htaccess
users a wide range of control over the responses and metadata given by the
server.
Resources accept trailing pathname information
Activates a CGI script for a particular handler or
content-type
Maps the given filename extensions to the specified content
charset
Default charset parameter to be added when a response
content-type is text/plain or text/html
Maps the given filename extensions to the specified encoding
type
Maps the filename extensions to the specified
handler
Maps filename extensions to the filters that will process
client requests
Maps the given filename extension to the specified content
language
Maps filename extensions to the filters that will process
responses from the server
assigns an output filter to a particular media-type
Maps the given filename extensions onto the specified content
type
Sets environment variables conditional on HTTP User-Agent
Sets environment variables conditional on User-Agent without
respect to case
Technique for locating the interpreter for CGI
scripts
Controls how some CGI variables are set
Charset to translate into
Configures charset translation behavior
Source charset of files
The domain to which the tracking cookie applies
Expiry time for the tracking cookie
Adds the 'HTTPOnly' attribute to the cookie
Name of the tracking cookie
Adds the 'SameSite' attribute to the cookie
Adds the 'Secure' attribute to the cookie
Format of the cookie header field
Enables tracking cookie
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.
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.
Use memory-mapping to read files during delivery
Use the kernel sendfile support to deliver files to the client
What the server will return to the client
in case of an error
File attributes used to create the ETag
HTTP response header for static files
Action to take if a single acceptable document is not
found
Forces all matching files to be served with the specified
media type in the HTTP Content-Type header field
Configure HTTP response headers
Record HSE_APPEND_LOG_PARAMETER requests from
ISAPI extensions to the error log
Record HSE_APPEND_LOG_PARAMETER requests from
ISAPI extensions to the query field
Fake asynchronous support for ISAPI callbacks
Log unsupported feature requests from ISAPI
extensions
Size of the Read Ahead Buffer sent to ISAPI
extensions
The precedence of language variants for cases where
the client does not express a preference
The types of files that will be included when searching for
a matching file with MultiViews
Passes environment variables from the shell
Controls whether the REDIRECT_URL environment variable is
fully qualified
Sends an external redirect asking the client to fetch
a different URL
Sends an external redirect based on a regular expression match
of the current URL
Sends an external permanent redirect asking the client to fetch
a different URL
Sends an external temporary redirect asking the client to fetch
a different URL
Removes any character set associations for a set of file
extensions
Removes any content encoding associations for a set of file
extensions
Removes any handler associations for a set of file
extensions
Removes any input filter associations for a set of file
extensions
Removes any language associations for a set of file
extensions
Removes any output filter associations for a set of file
extensions
Removes any content type associations for a set of file
extensions
Configure HTTP request headers
Sets the base URL for per-directory rewrites
Defines a condition under which rewriting will take place
Enables or disables runtime rewriting engine
Sets some special options for the rewrite engine
Defines rules for the rewriting engine
Technique for locating the interpreter for CGI
scripts
Sets environment variables
Sets environment variables based on attributes of the request
Sets environment variables based on an ap_expr expression
Sets environment variables based on attributes of the request
without respect to case
Forces all matching files to be processed by a
handler
Sets the filters that will process client requests and POST
input
Sets the filters that will process responses from the
server
Pattern to filter the response content
Change the merge order of inherited patterns
Set the maximum line size
Removes variables from the environment
The following directives are allowed in .htaccess files when
AllowOverride Indexes is in effect. They allow .htaccess
users to control aspects of the directory index pages provided by the
server, including autoindex generation.
Alternate text to display for a file, instead of an
icon selected by filename
Alternate text to display for a file instead of an icon
selected by MIME-encoding
Alternate text to display for a file, instead of an
icon selected by MIME content-type
Description to display for a file
Icon to display for a file selected by name
Icon to display next to files selected by MIME
content-encoding
Icon to display next to files selected by MIME
content-type
Icon to display for files when no specific icon is
configured
Toggle how this module responds when another handler is configured
List of resources to look for when the client requests
a directory
Configures an external redirect for directory indexes.
Toggle trailing slash redirects on or off
Enables generation of Expires
headers
Value of the Expires header configured
by MIME type
Default algorithm for calculating expiration time
Define a default URL for requests that don't map to a file or handler
Name of the file that will be inserted at the top
of the index listing
Default base for imagemap files
Default action when an imagemap is called with coordinates
that are not explicitly mapped
Action if no coordinates are given when calling
an imagemap
Inserts text in the HEAD section of an index page.
Adds to the list of files to hide when listing
a directory
Empties the list of files to hide when listing
a directory
Various configuration settings for directory
indexing
Sets the default ordering of the directory index
Adds a CSS stylesheet to the directory index
Name of the directory to find CERN-style meta information
files
Activates CERN meta-file processing
File name suffix for the file containing CERN-style
meta information
Name of the file that will be inserted at the end
of the index listing
The following directives are allowed in .htaccess files when
AllowOverride Limit is in effect. This extremely narrow
override type mostly allows the use of the legacy authorization directives
provided by mod_access_compat .
Controls which hosts can access an area of the
server
Controls which hosts are denied access to the
server
Restrict enclosed access controls to only certain HTTP
methods
Restrict access controls to all HTTP methods
except the named ones
Controls the default access state and the order in which
Allow and Deny are
evaluated.
The following directives are allowed in .htaccess files when
AllowOverride Options is in effect. They give .htaccess
users access to Options and similar directives, as well as
directives that control the filter chain.
Also match files with differing file name extensions.
Limits the action of the speling module to case corrections
Enables the spelling
module
Enables the generation of Content-MD5 HTTP Response
headers
Configure the filter chain
Declare a smart filter
Deal with correct HTTP protocol handling
Register a content filter
Configures what features are available in a particular
directory
Reflect an input header to the output headers
Configure various SSL engine run-time options
Parse SSI directives in files with the execute bit
set