Text of httpd.apache.org › docs › trunk › zh-cn › mod › quickreference.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

指令快速索引 - Apache HTTP 服务器 版本 2.5

模块 | 指令 | 常见问题 | 术语 | 网站导航 | Report a bug Apache HTTP 服务器版本 2.5 Apache > HTTP 服务器 > 文档 > 版本 2.5 > 模块 指令快速索引 可用语言: de | en | es | fr | ja | ko | tr | zh-cn 此翻译可能过期。要了解最近的更改,请阅读英文版。 指令快速索引显示指令的用法,默认值,状态和上下文。要获得更多信息,请参见 描述指令的术语 。 第一列给出指令的名称与用法。第二列显示指令的默认值(如果有的话)。 如果因为默认值太长而被截断显示,会在最后一个字符之后显示字符 "+"。 第三列显示允许此指令的上下文,第四列显示指令的状态。 A | B | C | D | E | F | G | H | I | K | L | M | N | O | P | Q | R | S | T | U | V | W | X s 服务器配置 v 虚拟主机 d 目录 h .htaccess C 核心 M MPM B 基础 E 扩展 X 实验 AcceptErrorsNonFatal ON s M Treat some errors accepting a new connection as non-fatal to the httpd process.

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 sv 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 Controls which hosts can access an area of the server AllowCONNECT port [- port ] [ port [- port ]] ... | None 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 AllowHandlers [not] none| handler-name [none| handler-name ]... all d X Restrict access to the listed handlers AllowMethods reset | [+|-] HTTP-method [ [+|-] HTTP-method ] ... reset d X Restrict access to the listed HTTP methods AllowOverride All|None| directive-type [ directive-type ] ...

None d C Types of directives that are allowed in .htaccess files AllowOverrideList None| directive [ directive ] ... 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 AsyncFilter request|connection|network request sv C Set the minimum filter type eligible for asynchronous handling 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.

AuthBearerAuthoritative On|Off On dh B Sets whether token verification is passed to lower level modules AuthBearerProvider provider-name [ provider-name ] ... file dh B Sets the authentication provider(s) for this location AuthBearerProxy off| expression dh B Pass a bearer authentication token over a proxy connection generated using the given expression 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 AuthDigestNcCheck On|Off Off svdh E Enables or disables checking of the nonce-count sent by the client 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 T

The rest of this page is on the live site.