Features List

This is a complete list of all supported .htaccess override values, based on Apache 2.4 source.
All sections, directives and variables supported by .htaccess for nginx are clearly marked.

Yes Directive fully supported
Partially Directive supported, but some limitations apply (outlined individually)
No Directive not supported, but will be supported in a future version
Never Directive intentionally unsupported (reason outlined individually)

Missing features are currently in active development.
Unsupported directives will be supported in future versions, unless they are marked as "Never".


Sections

Module Section Supported
core <Else> No
core <ElseIf> No
core <Files> Yes
core <FilesMatch> Yes
core <If> No
core <IfDefine> Never
  • Impossible to be implemented
  • Apache specific
core <IfDirective> Yes
core <IfFile> Yes
core <IfModule> Yes
  • Emulating supported modules according to supported directives
core <IfSection> Yes
core <Limit> Yes
core <LimitExcept> Yes
mod_authz_core <RequireAll> No
mod_authz_core <RequireAny> No
mod_authz_core <RequireNone> No
mod_version <IfVersion> Yes
  • The version will be simulated as Apache 2.4.0

Other sections are not supported.


Directives

Module Directive Supported
core AcceptPathInfo No
core AddDefaultCharset No
core CGIMapExtension No
core CGIPassAuth No
core CGIVar No
core ContentDigest No
core DefaultType No
core EnableMMAP No
core EnableSendfile No
core ErrorDocument No
core FileETag No
core ForceType No
core LimitRequestBody No
core LimitXMLRequestBody No
core Options No
core QualifyRedirectURL No
core RLimitCPU Never
  • Rarely used and not practical for nginx
core RLimitMEM Never
  • Rarely used and not practical for nginx
core RLimitNPROC Never
  • Rarely used and not practical for nginx
core ScriptInterpreterSource No
core ServerSignature No
core SetHandler No
core SetInputFilter No
core SetOutputFilter No
mod_access_compat Allow Yes
  • Allow from domainname.tld requires getent command line tool
mod_access_compat Deny Yes
  • Deny from domainname.tld requires getent command line tool
mod_access_compat Order Yes
mod_access_compat Satisfy Never
  • Security reasons
  • Satisfy All assumed
mod_actions Action Never
  • Security reasons
  • CGI request handling must be in main host config
mod_alias Redirect Yes
mod_alias RedirectMatch Yes
mod_alias RedirectPermanent Yes
mod_alias RedirectTemp Yes
mod_auth_basic AuthBasicAuthoritative No
mod_auth_basic AuthBasicFake No
mod_auth_basic AuthBasicProvider No
mod_auth_basic AuthBasicUseDigestAlgorithm No
mod_auth_digest * No
mod_auth_form * No
mod_authn_anon * No
mod_authn_core AuthName Yes
mod_authn_core AuthType Partially
  • Only AuthType Basic supported
mod_authn_dbm * No
mod_authn_file AuthUserFile Yes
mod_authn_socache * No
mod_authnz_ldap * No
mod_authz_core AuthMerging No
mod_authz_core Require Partially
  • Require group not supported
  • Require host not supported
  • Require expr not supported
mod_authz_dbm * No
mod_authz_groupfile * No
mod_autoindex AddAlt No
mod_autoindex AddAltByEncoding No
mod_autoindex AddAltByType No
mod_autoindex AddDescription No
mod_autoindex AddIcon No
mod_autoindex AddIconByEncoding No
mod_autoindex AddIconByType No
mod_autoindex DefaultIcon No
mod_autoindex HeaderName No
mod_autoindex IndexHeadInsert No
mod_autoindex IndexIgnore No
mod_autoindex IndexIgnoreReset No
mod_autoindex IndexOptions No
mod_autoindex IndexOrderDefault No
mod_autoindex IndexStyleSheet No
mod_autoindex ReadmeName No
mod_cern_meta * No
  • Rarely used
mod_charset_lite CharsetDefault No
mod_charset_lite CharsetOptions No
mod_charset_lite CharsetSourceEnc No
mod_dir DirectoryCheckHandler No
mod_dir DirectoryIndex No
mod_dir DirectoryIndexRedirect No
mod_dir DirectorySlash No
mod_dir FallbackResource No
mod_env PassEnv No
mod_env SetEnv No
mod_env UnsetEnv No
mod_expires ExpiresActive No
mod_expires ExpiresByType No
mod_expires ExpiresDefault No
mod_filter AddOutputFilterByType No
mod_filter FilterChain No
mod_filter FilterDeclare No
mod_filter FilterProtocol No
mod_filter FilterProvider No
mod_headers Header No
mod_headers RequestHeader No
mod_imagemap * No
mod_include SSIErrorMsg No
mod_include SSITimeFormat No
mod_include SSIUndefinedEcho No
mod_include XBitHack No
mod_isapi * No
mod_ldap * No
mod_logio * No
mod_lua * No
mod_mime AddCharset No
mod_mime AddEncoding No
mod_mime AddHandler No
mod_mime AddInputFilter No
mod_mime AddLanguage No
mod_mime AddOutputFilter No
mod_mime AddType Yes
mod_mime DefaultLanguage No
mod_mime MultiviewsMatch No
mod_mime RemoveCharset No
mod_mime RemoveEncoding No
mod_mime RemoveHandler No
mod_mime RemoveInputFilter No
mod_mime RemoveLanguage No
mod_mime RemoveOutputFilter No
mod_mime RemoveType No
mod_negotiation ForceLanguagePriority No
mod_negotiation LanguagePriority No
mod_reflector * Never
  • Security reasons
mod_rewrite RewriteBase Yes
mod_rewrite RewriteCond Yes
mod_rewrite RewriteEngine Yes
mod_rewrite RewriteOptions No
mod_rewrite RewriteRule Yes
mod_session * No
mod_setenvif BrowserMatch No
mod_setenvif BrowserMatchNoCase No
mod_setenvif SetEnvIf No
mod_setenvif SetEnvIfExpr No
mod_setenvif SetEnvIfNoCase No
mod_speling CheckCaseOnly No
mod_speling CheckSpelling No
mod_ssl SSLCipherSuite No
mod_ssl SSLOptions No
mod_ssl SSLRenegBufferSize No
mod_ssl SSLRequire No
mod_ssl SSLRequireSSL No
mod_ssl SSLUserName No
mod_ssl SSLVerifyClient No
mod_ssl SSLVerifyDepth No
mod_substitute Substitute No
mod_substitute SubstituteInheritBefore No
mod_substitute SubstituteMaxLineLength No
mod_usertrack CookieDomain No
mod_usertrack CookieExpires No
mod_usertrack CookieHTTPOnly No
mod_usertrack CookieName No
mod_usertrack CookieSameSite No
mod_usertrack CookieSecure No
mod_usertrack CookieStyle No
mod_usertrack CookieTracking No

Other directives are not supported.


Variables

Variable Supported
HTTP_* Yes, all standard and non-standard HTTP header fields are supported
HTTPS Yes
DOCUMENT_ROOT Yes
SERVER_ADDR Yes
SERVER_NAME Yes
SERVER_PORT Yes
SERVER_PROTOCOL Yes
REMOTE_ADDR Yes
REMOTE_HOST Yes
REMOTE_USER Yes
REMOTE_PORT Yes
REQUEST_METHOD Yes
REQUEST_FILENAME Yes
REQUEST_URI Yes
QUERY_STRING Yes
SCRIPT_FILENAME Yes
REQUEST_SCHEME Yes
THE_REQUEST Yes
IPV6 Yes
TIME Yes
TIME_YEAR Yes
TIME_MON Yes
TIME_DAY Yes
TIME_HOUR Yes
TIME_MIN Yes
TIME_SEC Yes
TIME_WDAY Yes

Other variables are not supported.


Back to main page