Apache HTTP Server 版本2.2
指令速查列出了每個指令的用法、默認(rèn)值、狀態(tài)和作用域。更詳細(xì)的說明可以查閱指令字典。
第一列是指令的名稱和用法;
第二列是指令的默認(rèn)值(如果存在),如果很長寫不下,則后面跟有"+"表示截斷。
第三和第四列是指令允許出現(xiàn)的位置和狀態(tài),其中縮略語如下表所示:
A | B | C | D | E | F | G | H | I | K | L | M | N | O | P | R | S | T | U | V | W | X |
|
|
AcceptFilter protocol accept_filter | s | C | |
根據(jù)協(xié)議類型對監(jiān)聽Socket進(jìn)行優(yōu)化 | |||
AcceptMutex Default|method | Default | s | M |
Apache用于串行化多個子進(jìn)程在(多個)網(wǎng)絡(luò)套接字(socket)上接受請求的方法 | |||
AcceptPathInfo On|Off|Default | Default | svdh | C |
是否接受附帶多余路徑名信息的請求 | |||
AccessFileName filename [filename] ... | .htaccess | sv | C |
分布式配置文件的名字 | |||
Action action-type cgi-script [virtual] | svdh | B | |
針對特定的處理器或內(nèi)容類型激活一個CGI腳本 | |||
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 | |
在給定的文件擴(kuò)展名與特定的字符集之間建立映射 | |||
AddDefaultCharset On|Off|charset | Off | svdh | C |
當(dāng)應(yīng)答內(nèi)容是text/plain或text/html時,在HTTP應(yīng)答頭中加入的默認(rèn)字符集 | |||
AddDescription string file [file] ... | svdh | B | |
Description to display for a file | |||
AddEncoding MIME-enc extension [extension] ... | svdh | B | |
在文件擴(kuò)展名與特定的編碼方式之間建立映射關(guān)系 | |||
AddHandler handler-name extension [extension] ... | svdh | B | |
在文件擴(kuò)展名與特定的處理器之間建立映射 | |||
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 | |
在文件擴(kuò)展名與特定的輸入過濾器之間建立映射 | |||
AddLanguage MIME-lang extension [extension] ... | svdh | B | |
在文件擴(kuò)展名與特定的語言之間建立映射 | |||
AddModuleInfo module-name string | sv | E | |
為server-info處理器顯示的模塊增加額外信息 | |||
AddOutputFilter filter[;filter...] extension [extension] ... | svdh | B | |
在文件擴(kuò)展名與特定的輸出過濾器之間建立映射關(guān)系 | |||
AddOutputFilterByType filter[;filter...] MIME-type [MIME-type] ... | svdh | C | |
對特定的MIME類型指定輸出過濾器 | |||
AddType MIME-type extension [extension] ... | svdh | B | |
在給定的文件擴(kuò)展名與特定的內(nèi)容類型之間建立映射 | |||
Alias URL-path file-path|directory-path | sv | B | |
映射URL到文件系統(tǒng)的特定區(qū)域 | |||
AliasMatch regex file-path|directory-path | sv | B | |
使用正則表達(dá)式映射URL到文件系統(tǒng) | |||
Allow from all|host|env=env-variable [host|env=env-variable] ... | dh | B | |
控制哪些主機(jī)能夠訪問服務(wù)器的該區(qū)域 | |||
AllowCONNECT port [port] ... | 443 563 | sv | E |
通過代理允許CONNECT的端口號 | |||
AllowEncodedSlashes On|Off | Off | sv | C |
確定是否允許URL中使用經(jīng)過編碼的路徑分割符 | |||
AllowOverride All|None|directive-type [directive-type] ... | All | d | C |
確定允許存在于.htaccess文件中的指令類型 | |||
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 | |||
AuthBasicAuthoritative On|Off | On | dh | B |
指定是否將(基本)認(rèn)證和授權(quán)操作交由更底層的模塊來處理 | |||
AuthBasicProvider provider-name [provider-name] ... | file | dh | B |
設(shè)置該區(qū)域的(基本)認(rèn)證支持者(Provider) | |||
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 | |||
AuthDefaultAuthoritative On|Off | On | dh | B |
指定是否將認(rèn)證操作交由更底層的模塊來處理 | |||
AuthDigestAlgorithm MD5|MD5-sess | MD5 | dh | X |
選擇在摘要認(rèn)證中用于計算請求和應(yīng)答的散列值的算法 | |||
AuthDigestDomain URI [URI] ... | dh | X | |
在同一保護(hù)區(qū)域中需要進(jìn)行摘要認(rèn)證的URI | |||
AuthDigestNcCheck On|Off | Off | s | X |
Enables or disables checking of the nonce-count sent by the server | |||
AuthDigestNonceFormat format | dh | X | |
Determines how the nonce is generated | |||
AuthDigestNonceLifetime seconds | 300 | dh | X |
服務(wù)器nonce(當(dāng)前值)的有效秒數(shù) | |||
AuthDigestProvider provider-name [provider-name] ... | file | dh | X |
設(shè)置該區(qū)域的(摘要)認(rèn)證支持者(Provider) | |||
AuthDigestQop none|auth|auth-int [auth|auth-int] | auth | dh | X |
指定摘要認(rèn)證的保護(hù)質(zhì)量 | |||
AuthDigestShmemSize size | 1000 | s | X |
為了跟蹤客戶端而分配的共享內(nèi)存字節(jié)數(shù) | |||
AuthGroupFile file-path | dh | B | |
設(shè)定一個包含用于執(zhí)行用戶認(rèn)證的用戶組列表的純文本文件 | |||
AuthLDAPBindDN distinguished-name | dh | E | |
Optional DN to use in binding to the LDAP server | |||
AuthLDAPBindPassword password | dh | E | |
Password used in conjuction with the bind DN | |||
AuthLDAPCharsetConfig file-path | s | E | |
Language to charset conversion configuration file | |||
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 | dh | E | |
LDAP attributes used to check for group membership | |||
AuthLDAPGroupAttributeIsDN on|off | on | dh | E |
Use the DN of the client username when checking for group membership | |||
AuthLDAPRemoteUserIsDN on|off | off | dh | E |
Use the DN of the client username to set the REMOTE_USER environment variable | |||
AuthLDAPUrl url [NONE|SSL|TLS|STARTTLS] | dh | E | |
URL specifying the LDAP search parameters | |||
AuthName auth-domain | dh | C | |
用于HTTP認(rèn)證的授權(quán)域 | |||
<AuthnProviderAlias baseProvider Alias> ... </AuthnProviderAlias> | sv | E | |
封裝一組定義擴(kuò)展認(rèn)證支持者的指令,并為其指定一個別名 | |||
AuthType Basic|Digest | dh | C | |
用戶認(rèn)證類型 | |||
AuthUserFile file-path | dh | B | |
設(shè)定一個含有認(rèn)證使用的用戶名/密碼列表的純文本文件 | |||
AuthzDBMAuthoritative On|Off | On | dh | E |
Sets whether authorization will be passed on to lower level modules | |||
AuthzDBMType default|SDBM|GDBM|NDBM|DB | default | dh | E |
Sets the type of database file that is used to store list of user groups | |||
AuthzDefaultAuthoritative On|Off | On | dh | B |
指定是否將授權(quán)操作交由更底層的模塊來處理 | |||
AuthzGroupFileAuthoritative On|Off | On | dh | B |
指定是否將授權(quán)操作交由更底層的模塊來處理 | |||
AuthzLDAPAuthoritative on|off | on | dh | E |
Prevent other authentication modules from authenticating the user if this one fails | |||
AuthzOwnerAuthoritative On|Off | On | dh | E |
指定是否將授權(quán)操作交由更底層的模塊來處理 | |||
AuthzUserAuthoritative On|Off | On | dh | B |
指定是否將授權(quán)操作交由更底層的模塊來處理 | |||
BrowserMatch regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
基于User-Agent頭有條件地設(shè)置環(huán)境變量 | |||
BrowserMatchNoCase regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
基于不區(qū)分大小寫的User-Agent頭有條件地設(shè)置環(huán)境變量 | |||
BufferedLogs On|Off | Off | s | B |
在將日志寫入磁盤前先在內(nèi)存中進(jìn)行緩沖 | |||
CacheDefaultExpire seconds | 3600 (one hour) | sv | E |
The default duration to cache a document when no expiry date is specified. | |||
CacheDirLength length | 2 | sv | E |
The number of characters in subdirectory names | |||
CacheDirLevels levels | 3 | sv | E |
The number of levels of subdirectories in the cache. | |||
CacheDisable url-string | sv | E | |
Disable caching of specified URLs | |||
CacheEnable cache_type url-string | sv | 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 | |||
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 | sv | E |
Ignore the fact that a response has no Last Modified header. | |||
CacheLastModifiedFactor float | 0.1 | sv | E |
The factor used to compute an expiry date based on the LastModified date. | |||
CacheMaxExpire seconds | 86400 (one day) | sv | E |
The maximum time in seconds to cache a document | |||
CacheMaxFileSize bytes | 1000000 | sv | E |
The maximum size (in bytes) of a document to be placed in the cache | |||
CacheMinFileSize bytes | 1 | sv | E |
The minimum size (in bytes) of a document to be placed in the cache | |||
CacheNegotiatedDocs On|Off | Off | sv | B |
允許經(jīng)過內(nèi)容協(xié)商的文檔被代理服務(wù)器緩存 | |||
CacheRoot directory | sv | E | |
The directory root under which cache files are stored | |||
CacheStoreNoStore On|Off | Off | sv | E |
Attempt to cache requests or responses that have been marked as no-store. | |||
CacheStorePrivate On|Off | Off | sv | E |
Attempt to cache responses that the server has marked as private | |||
CGIMapExtension cgi-path .extension | dh | C | |
定位CGI腳本解釋器 | |||
CharsetDefault charset | svdh | X | |
Charset to translate into | |||
CharsetOptions option [option] ... | DebugLevel=0 NoImpl + | svdh | X |
Configures charset translation behavior | |||
CharsetSourceEnc charset | svdh | X | |
Source charset of files | |||
CheckSpelling on|off | Off | svdh | E |
Enables the spelling module | |||
ContentDigest On|Off | Off | svdh | C |
允許生成Content-MD5應(yīng)答頭 | |||
CookieDomain domain | svdh | E | |
The domain to which the tracking cookie applies | |||
CookieExpires expiry-period | svdh | E | |
Expiry time for the tracking cookie | |||
CookieLog filename | sv | B | |
設(shè)定針對cookies的日志文件名 | |||
CookieName token | Apache | svdh | E |
Name of the tracking 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 | |
Apache使用的內(nèi)核轉(zhuǎn)儲目錄 | |||
CustomLog file|pipe format|nickname [env=[!]environment-variable] | sv | B | |
設(shè)定日志的文件名和格式 | |||
Dav On|Off|provider-name | Off | d | E |
Enable WebDAV HTTP methods | |||
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 | |||
DavMinTimeout seconds | 0 | svd | E |
Minimum amount of time the server holds a lock on a DAV resource | |||
DBDExptime time-in-seconds | sv | E | |
Keepalive time for idle connections | |||
DBDKeep number | sv | E | |
Maximum sustainednumber of connections | |||
DBDMax number | sv | E | |
Maximum number of connections | |||
DBDMin number | sv | E | |
Minimum number of connections | |||
DBDParams param1=value1[,param2=value2] | sv | E | |
Parameters for database connection | |||
DBDPersist 0|1 | 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 MIME-lang | svdh | B | |
為所有文件設(shè)定特定的默認(rèn)語言 | |||
DefaultType MIME-type | text/plain | svdh | C |
在服務(wù)器無法由其他方法確定內(nèi)容類型時,發(fā)送的默認(rèn)MIME內(nèi)容類型 | |||
DeflateBufferSize value | 8096 | sv | E |
用于zlib一次壓縮的片斷大小(字節(jié)) | |||
DeflateCompressionLevel value | sv | E | |
將輸出內(nèi)容壓縮的程度 | |||
DeflateFilterNote [type] notename | sv | E | |
在日志中放置壓縮率標(biāo)記 | |||
DeflateMemLevel value | 9 | sv | E |
zlib在壓縮時最多可以使用多少內(nèi)存 | |||
DeflateWindowSize value | 15 | sv | E |
Zlib壓縮窗口(compression window)的大小 | |||
Deny from all|host|env=env-variable [host|env=env-variable] ... | dh | B | |
控制哪些主機(jī)被禁止訪問服務(wù)器 | |||
<Directory directory-path> ... </Directory> | sv | C | |
封裝一組指令,使之僅對文件空間中的某個目錄及其子目錄生效 | |||
DirectoryIndex local-url [local-url] ... | index.html | svdh | B |
當(dāng)客戶端請求一個目錄時尋找的資源列表 | |||
<DirectoryMatch regex> ... </DirectoryMatch> | sv | C | |
封裝一些指令并作用于文件系統(tǒng)中匹配正則表達(dá)式的所有目錄及其子目錄 | |||
DirectorySlash On|Off | On | svdh | B |
打開或關(guān)閉目錄結(jié)尾斜線(/)自動補(bǔ)全功能 | |||
DocumentRoot directory-path | /usr/local/apache/h + | sv | C |
組成網(wǎng)絡(luò)上可見的主文檔樹的根目錄 | |||
DumpIOInput On|Off | Off | s | E |
將所有輸入的內(nèi)容記錄到錯誤日志中 | |||
DumpIOOutput On|Off | Off | s | E |
將所有輸出的內(nèi)容記錄到錯誤日志中 | |||
EnableExceptionHook On|Off | Off | s | M |
在子進(jìn)程崩潰以后啟用一個鉤子來運(yùn)行異常處理程序 | |||
EnableMMAP On|Off | On | svdh | C |
在遞送中使用內(nèi)存映射(memory-mapping)來讀取文件 | |||
EnableSendfile On|Off | On | svdh | C |
使用操作系統(tǒng)內(nèi)核的sendfile支持來將文件發(fā)送到客戶端 | |||
ErrorDocument error-code document | svdh | C | |
當(dāng)遇到錯誤的時候服務(wù)器將給客戶端什么樣的應(yīng)答 | |||
ErrorLog file-path|syslog[:facility] | logs/error_log (Uni + | sv | C |
存放錯誤日志的位置 | |||
Example | svdh | X | |
Demonstration directive to illustrate the Apache module API | |||
ExpiresActive On|Off | svdh | E | |
啟用或禁用產(chǎn)生"Expires:"和"Cache-Control:"頭的功能 | |||
ExpiresByType MIME-type <code>seconds | svdh | E | |
由MIME類型配置的Expires頭的值 | |||
ExpiresDefault <code>seconds | svdh | E | |
默認(rèn)有效期的計算方法 | |||
ExtendedStatus On|Off | Off | s | B |
Keep track of extended status information for each request | |||
ExtFilterDefine filtername parameters | s | E | |
Define an external filter | |||
ExtFilterOptions option [option] ... | DebugLevel=0 NoLogS + | d | E |
Configure mod_ext_filter options | |||
FileETag component ... | INode MTime Size | svdh | C |
用以創(chuàng)建ETag應(yīng)答頭的文件的屬性 | |||
<Files filename> ... </Files> | svdh | C | |
包含作用于匹配指定文件名的指令 | |||
<FilesMatch regex> ... </FilesMatch> | svdh | C | |
包含作用于與正則表達(dá)式匹配的文件名的指令 | |||
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 [req|resp|env]=dispatch match | svdh | B | |
Register a content filter | |||
FilterTrace filter-name level | svd | B | |
Get debug/diagnostic information from
mod_filter | |||
ForceLanguagePriority None|Prefer|Fallback [Prefer|Fallback] | Prefer | svdh | B |
指定無法匹配單個文檔的情況下所采取的動作 | |||
ForceType MIME-type|None | dh | C | |
強(qiáng)制所有匹配的文件被作為指定的MIME類型進(jìn)行伺服 | |||
ForensicLog filename|pipe | sv | E | |
Sets filename of the forensic log | |||
GracefulShutDownTimeout seconds | s | M | |
指定優(yōu)雅停止服務(wù)器的超時秒數(shù) | |||
Group unix-group | #-1 | s | M |
對請求提供服務(wù)的Apache子進(jìn)程運(yùn)行時的用戶組 | |||
Header [condition] set|append|add|unset|echo header [value] [early|env=[!]variable] | svdh | E | |
配置HTTP應(yīng)答頭 | |||
HeaderName filename | svdh | B | |
Name of the file that will be inserted at the top of the index listing | |||
HostnameLookups On|Off|Double | Off | svd | C |
啟用對客戶端IP的DNS查找 | |||
IdentityCheck On|Off | Off | svd | E |
啟用對遠(yuǎn)端用戶的RFC1413身份鑒定的日志 | |||
IdentityCheckTimeout seconds | 30 | svd | E |
Determines the timeout duration for ident requests | |||
<IfDefine [!]parameter-name> ... </IfDefine> | svdh | C | |
封裝一組只有在啟動時當(dāng)測試結(jié)果為真時才生效的指令 | |||
<IfModule [!]module-file|module-identifier> ... </IfModule> | svdh | C | |
封裝指令并根據(jù)指定的模塊是否啟用為條件而決定是否進(jìn)行處理 | |||
<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 | svdh | B | |
Action if no coordinates are given when calling an imagemap | |||
Include file-path|directory-path | svd | C | |
在服務(wù)器配置文件中包含其它配置文件 | |||
IndexIgnore file [file] ... | svdh | B | |
Adds to the list of files to hide when listing a directory | |||
IndexOptions [+|-]option [[+|-]option] ... | svdh | B | |
Various configuration settings for directory indexing | |||
IndexOrderDefault Ascending|Descending Name|Date|Size|Description | Ascending Name | svdh | B |
Sets the default ordering of the directory index | |||
IndexStyleSheet url-path | svdh | B | |
Adds a CSS stylesheet to the directory index | |||
ISAPIAppendLogToErrors on|off | off | svdh | B |
把ISAPI擴(kuò)展的HSE_APPEND_LOG_PARAMETER請求記錄在錯誤日志中 | |||
ISAPIAppendLogToQuery on|off | on | svdh | B |
把ISAPI擴(kuò)展的HSE_APPEND_LOG_PARAMETER請求記錄在查詢域中 | |||
ISAPICacheFile file-path [file-path] ... | sv | B | |
啟動時載入的ISAPI動態(tài)連接庫 | |||
ISAPIFakeAsync on|off | off | svdh | B |
為ISAPI回調(diào)模擬異步支持 | |||
ISAPILogNotSupported on|off | off | svdh | B |
記錄ISAPI不支持的功能調(diào)用 | |||
ISAPIReadAheadBuffer size | 49152 | svdh | B |
傳送到ISAPI擴(kuò)展的預(yù)讀緩沖區(qū)大小 | |||
KeepAlive On|Off | On | sv | C |
啟用HTTP持久鏈接 | |||
KeepAliveTimeout seconds | 5 | sv | C |
持久鏈接中服務(wù)器在兩次請求之間等待的秒數(shù) | |||
LanguagePriority MIME-lang [MIME-lang] ... | svdh | B | |
在客戶端沒有指示語言偏好的情況下,語言變體的優(yōu)先級列表 | |||
LDAPCacheEntries number | 1024 | s | E |
主LDAP緩沖的最大條目數(shù) | |||
LDAPCacheTTL seconds | 600 | s | E |
search/bind緩沖項(xiàng)目有效時限 | |||
LDAPConnectionTimeout seconds | s | E | |
指定套接字連接超時秒數(shù) | |||
LDAPOpCacheEntries number | 1024 | s | E |
LDAP compare緩沖區(qū)的大小 | |||
LDAPOpCacheTTL seconds | 600 | s | E |
操作緩沖有效時限 | |||
LDAPSharedCacheFile directory-path/filename | s | E | |
設(shè)置共享內(nèi)存緩沖區(qū)文件 | |||
LDAPSharedCacheSize bytes | 102400 | s | E |
共享內(nèi)存緩沖區(qū)的字節(jié)大小 | |||
LDAPTrustedClientCert type directory-path/filename/nickname [password] | svdh | E | |
Sets the file containing or nickname referring to a per connection client certificate. Not all LDAP toolkits support per connection client certificates. | |||
LDAPTrustedGlobalCert type directory-path/filename [password] | s | E | |
Sets the file or database containing global trusted Certificate Authority or global client certificates | |||
LDAPTrustedMode type | svdh | E | |
Specifies the SSL/TLS mode to be used when connecting to an LDAP server. | |||
LDAPVerifyServerCert On|Off | On | s | E |
Force server certificate verification | |||
<Limit method [method] ... > ... </Limit> | svdh | C | |
僅對指定的HTTP方法進(jìn)行訪問控制 | |||
<LimitExcept method [method] ... > ... </LimitExcept> | svdh | C | |
對除了指定方法以外的所有HTTP方法進(jìn)行訪問控制 | |||
LimitInternalRecursion number [number] | 10 | sv | C |
指定內(nèi)部重定向和嵌套子請求的最大數(shù)量 | |||
LimitRequestBody bytes | 0 | svdh | C |
限制客戶端發(fā)送的HTTP請求體的最大字節(jié)長度 | |||
LimitRequestFields number | 100 | s | C |
限制接受客戶端請求中HTTP請求頭域的數(shù)量 | |||
LimitRequestFieldsize bytes | s | C | |
限制客戶端發(fā)送的請求頭的字節(jié)數(shù) | |||
LimitRequestLine bytes | 8190 | s | C |
限制接受客戶端發(fā)送的HTTP請求行的字節(jié)數(shù) | |||
LimitXMLRequestBody bytes | 1000000 | svdh | C |
限制基于XML的請求體的大小 | |||
Listen [IP-address:]portnumber [protocol] | s | M | |
服務(wù)器監(jiān)聽的IP地址和端口 | |||
ListenBacklog backlog | s | M | |
半鏈接(pending connection)隊(duì)列的最大長度 | |||
LoadFile filename [filename] ... | s | E | |
加載已命名的目標(biāo)文件或庫 | |||
LoadModule module filename | s | E | |
加載目標(biāo)文件或庫,并將其添加到活動模塊列表 | |||
<Location URL-path|URL> ... </Location> | sv | C | |
將封裝的指令作用于匹配的URL | |||
<LocationMatch regex> ... </LocationMatch> | sv | C | |
將封裝的指令作用于正則表達(dá)式匹配的URL | |||
LockFile filename | logs/accept.lock | s | M |
接受串行鎖文件的位置 | |||
LogFormat format|nickname [nickname] | "%h %l %u %t \"%r\" + | sv | B |
定義訪問日志的記錄格式 | |||
LogLevel level | warn | sv | C |
控制錯誤日志的詳細(xì)程度 | |||
MaxClients number | s | M | |
允許同時伺服的最大接入請求數(shù)量 | |||
MaxKeepAliveRequests number | 100 | sv | C |
一個持久鏈接中允許的最大請求數(shù)量 | |||
MaxMemFree KBytes | 0 | s | M |
主內(nèi)存分配程序在未調(diào)用free()的情況下允許持有的最大自由內(nèi)存數(shù)量(KB) | |||
MaxRequestsPerChild number | 10000 | s | M |
每個子進(jìn)程在其生存期內(nèi)允許伺服的最大請求數(shù)量 | |||
MaxRequestsPerThread number | 0 | s | M |
Limit on the number of requests that an individual thread will handle during its life | |||
MaxSpareServers number | 10 | s | M |
空閑子進(jìn)程的最大數(shù)量 | |||
MaxSpareThreads number | s | M | |
最大空閑線程數(shù) | |||
MaxThreads number | 2048 | s | M |
Set the maximum number of worker threads | |||
MCacheMaxObjectCount value | 1009 | s | E |
最大緩存對象數(shù) | |||
MCacheMaxObjectSize bytes | 10000 | s | E |
緩存允許的最大文檔大小(字節(jié)) | |||
MCacheMaxStreamingBuffer size_in_bytes | the smaller of 1000 + | s | E |
內(nèi)存中允許緩沖的最大流式響應(yīng)字節(jié)長度 | |||
MCacheMinObjectSize bytes | 0 | s | E |
允許緩存的最小文檔大小(字節(jié)) | |||
MCacheRemovalAlgorithm LRU|GDSF | GDSF | s | E |
定義在需要時哪個文檔被移出緩存的算法 | |||
MCacheSize KBytes | 100 | s | E |
緩存允許使用的最大內(nèi)存量,以KB為單位 | |||
MetaDir directory | .web | svdh | E |
Name of the directory to find CERN-style meta information files | |||
MetaFiles on|off | off | svdh | E |
Activates CERN meta-file processing | |||
MetaSuffix suffix | .meta | svdh | E |
File name suffix for the file containg CERN-style meta information | |||
MimeMagicFile file-path | sv | E | |
使用特定的Magic文件激活根據(jù)文件內(nèi)容確定文件MIME類型的功能 | |||
MinSpareServers number | 5 | s | M |
空閑子進(jìn)程的最小數(shù)量 | |||
MinSpareThreads number | s | M | |
最小空閑線程數(shù) | |||
MMapFile file-path [file-path] ... | s | X | |
Map a list of files into memory at startup time | |||
ModMimeUsePathInfo On|Off | Off | d | B |
將path_info當(dāng)成是文件名的一個組成部分 | |||
MultiviewsMatch Any|NegotiatedOnly|Filters|Handlers [Handlers|Filters] | NegotiatedOnly | svdh | B |
在使用MultiViews查詢所匹配的文件時要包含的文件類型 | |||
NameVirtualHost addr[:port] | s | C | |
為一個基于域名的虛擬主機(jī)指定一個IP地址(和端口) | |||
NoProxy host [host] ... | sv | E | |
直接進(jìn)行連接的主機(jī)/域/網(wǎng)絡(luò) | |||
NWSSLTrustedCerts filename [filename] ... | s | B | |
附加的客戶端證書列表 | |||
NWSSLUpgradeable [IP-address:]portnumber | s | B | |
允許在請求中將一個連接升級為SSL連接 | |||
Options [+|-]option [[+|-]option] ... | All | svdh | C |
配置在特定目錄中可以使用哪些特性 | |||
Order ordering | Deny,Allow | dh | B |
控制默認(rèn)的訪問狀態(tài)與Allow和Deny指令生效的順序 | |||
PassEnv env-variable [env-variable] ... | svdh | B | |
傳送shell中的環(huán)境變量 | |||
PidFile filename | logs/httpd.pid | s | M |
服務(wù)器用于記錄父進(jìn)程(監(jiān)控進(jìn)程)PID的文件 | |||
ProtocolEcho On|Off | sv | X | |
Turn the echo server on or off | |||
<Proxy wildcard-url> ...</Proxy> | sv | E | |
應(yīng)用于所代理資源的容器 | |||
ProxyBadHeader IsError|Ignore|StartBody | IsError | sv | E |
確定如何處理不合法的應(yīng)答頭 | |||
ProxyBlock *|word|host|domain [word|host|domain] ... | sv | E | |
設(shè)置被代理屏蔽的語句、主機(jī)、域 | |||
ProxyDomain Domain | sv | E | |
代理請求的默認(rèn)域名 | |||
ProxyErrorOverride On|Off | Off | sv | E |
覆蓋代理內(nèi)容的錯誤頁 | |||
ProxyIOBufferSize bytes | 8192 | sv | E |
內(nèi)部緩沖區(qū)大小 | |||
<ProxyMatch regex> ...</ProxyMatch> | sv | E | |
應(yīng)用于匹配正則表達(dá)式的代理資源的容器 | |||
ProxyMaxForwards number | 10 | sv | E |
轉(zhuǎn)發(fā)請求的最大代理數(shù)目 | |||
ProxyPass [path] !|url [key=value key=value ...]] | svd | E | |
將一個遠(yuǎn)端服務(wù)器映射到本地服務(wù)器的URL空間中 | |||
ProxyPassReverse [path] url | svd | E | |
調(diào)整由反向代理服務(wù)器發(fā)送的HTTP應(yīng)答頭中的URL | |||
ProxyPassReverseCookieDomain internal-domain public-domain | svd | E | |
Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server | |||
ProxyPassReverseCookiePath internal-path public-path | svd | E | |
Adjusts the Path string in Set-Cookie headers from a reverse- proxied server | |||
ProxyPreserveHost On|Off | Off | sv | E |
使用進(jìn)入的HTTP請求頭來發(fā)送代理請求 | |||
ProxyReceiveBufferSize bytes | 0 | sv | E |
代理HTTP和FTP連接的接收緩沖區(qū)大小(字節(jié)) | |||
ProxyRemote match remote-server | sv | E | |
用于處理某些特定請求的遠(yuǎn)端代理 | |||
ProxyRemoteMatch regex remote-server | sv | E | |
處理匹配正則表達(dá)式的請求的遠(yuǎn)端代理 | |||
ProxyRequests On|Off | Off | sv | E |
啟用正向(標(biāo)準(zhǔn))代理請求 | |||
ProxyTimeout seconds | 300 | sv | E |
代理請求的網(wǎng)絡(luò)超時 | |||
ProxyVia On|Off|Full|Block | Off | sv | E |
控制代理對Via應(yīng)答頭的使用 | |||
ReadmeName filename | svdh | B | |
Name of the file that will be inserted at the end of the index listing | |||
ReceiveBufferSize bytes | 0 | s | M |
TCP接收緩沖區(qū)大小(字節(jié)) | |||
Redirect [status] URL-path URL | svdh | B | |
發(fā)送一個外部重定向使客戶端重定向到一個不同的URL | |||
RedirectMatch [status] regex URL | svdh | B | |
基于正則表達(dá)式匹配對當(dāng)前的URL發(fā)送一個外部重定向 | |||
RedirectPermanent URL-path URL | svdh | B | |
發(fā)送一個外部永久重定向使客戶端重定向到一個不同的URL | |||
RedirectTemp URL-path URL | svdh | B | |
發(fā)送一個外部臨時重定向使客戶端重定向到一個不同的URL | |||
RemoveCharset extension [extension] ... | vdh | B | |
刪除任何給定的擴(kuò)展名與內(nèi)容字符集之間的關(guān)聯(lián) | |||
RemoveEncoding extension [extension] ... | vdh | B | |
刪除任何給定的擴(kuò)展名與內(nèi)容編碼方式之間的關(guān)聯(lián) | |||
RemoveHandler extension [extension] ... | vdh | B | |
刪除任何指定擴(kuò)展名與處理器之間的關(guān)聯(lián) | |||
RemoveInputFilter extension [extension] ... | vdh | B | |
刪除指定擴(kuò)展名與輸入過濾器之間的關(guān)聯(lián) | |||
RemoveLanguage extension [extension] ... | vdh | B | |
刪除指定的擴(kuò)展名與內(nèi)容語言之間的關(guān)聯(lián) | |||
RemoveOutputFilter extension [extension] ... | vdh | B | |
刪除指定擴(kuò)展名與輸出過濾器之間的關(guān)聯(lián) | |||
RemoveType extension [extension] ... | vdh | B | |
刪除指定擴(kuò)展名與內(nèi)容類型之間的關(guān)聯(lián) | |||
RequestHeader set|append|add|unset header [value] [early|env=[!]variable] | svdh | E | |
配置HTTP請求頭 | |||
Require entity-name [entity-name] ... | dh | C | |
指定哪些認(rèn)證用戶允許訪問該資源 | |||
RewriteBase URL-path | dh | E | |
Sets the base URL for per-directory rewrites | |||
RewriteCond TestString CondPattern | svdh | E | |
Defines a condition under which rewriting will take place | |||
RewriteEngine on|off | off | svdh | E |
Enables or disables runtime rewriting engine | |||
RewriteLock file-path | s | E | |
Sets the name of the lock file used for RewriteMap
synchronization | |||
RewriteLog file-path | sv | E | |
Sets the name of the file used for logging rewrite engine processing | |||
RewriteLogLevel Level | 0 | sv | E |
Sets the verbosity of the log file used by the rewrite engine | |||
RewriteMap MapName MapType:MapSource | sv | E | |
Defines a mapping function for key-lookup | |||
RewriteOptions Options | svdh | E | |
Sets some special options for the rewrite engine | |||
RewriteRule Pattern Substitution | svdh | E | |
Defines rules for the rewriting engine | |||
RLimitCPU seconds|max [seconds|max] | svdh | C | |
限制Apache子進(jìn)程派生的進(jìn)程占用CPU的最大秒數(shù) | |||
RLimitMEM bytes|max [bytes|max] | svdh | C | |
限制由Apache子進(jìn)程派生的進(jìn)程占用的最大內(nèi)存字節(jié)數(shù) | |||
RLimitNPROC number|max [number|max] | svdh | C | |
限制由Apache子進(jìn)程派生的進(jìn)程所派生的進(jìn)程數(shù)目 | |||
Satisfy Any|All | All | dh | C |
主機(jī)級別的訪問控制和用戶認(rèn)證之間的相互關(guān)系 | |||
ScoreBoardFile file-path | logs/apache_status | s | M |
存儲子進(jìn)程協(xié)調(diào)數(shù)據(jù)(coordination data)的文件 | |||
Script method cgi-script | svd | B | |
對特定的請求方法激活一個CGI腳本 | |||
ScriptAlias URL-path file-path|directory-path | sv | B | |
映射一個URL到文件系統(tǒng)并視之為CGI腳本 | |||
ScriptAliasMatch regex file-path|directory-path | sv | B | |
使用正則表達(dá)式映射一個URL到文件系統(tǒng)并視之為CGI腳本 | |||
ScriptInterpreterSource Registry|Registry-Strict|Script | Script | svdh | C |
定位CGI腳本解釋器 | |||
ScriptLog file-path | sv | B | |
CGI腳本錯誤日志文件的位置 | |||
ScriptLogBuffer bytes | 1024 | sv | B |
記入日志文件的PUT或POST請求頭的最大數(shù)量 | |||
ScriptLogLength bytes | 10385760 | sv | B |
日志文件的大小限制(字節(jié)) | |||
ScriptSock file-path | logs/cgisock | sv | B |
用來與CGI守護(hù)進(jìn)程通信的套接字文件名前綴 | |||
SecureListen [IP-address:]portnumber Certificate-Name [MUTUAL] | s | B | |
在指定端口啟用SSL加密 | |||
SendBufferSize bytes | 0 | s | M |
TCP發(fā)送緩沖區(qū)大小(字節(jié)) | |||
ServerAdmin email-address|URL | sv | C | |
服務(wù)器返回給客戶端的錯誤信息中包含的管理員郵件地址 | |||
ServerAlias hostname [hostname] ... | v | C | |
匹配一個基于域名的虛擬主機(jī)的別名 | |||
ServerLimit number | s | M | |
服務(wù)器允許配置的進(jìn)程數(shù)上限 | |||
ServerName fully-qualified-domain-name[:port] | sv | C | |
服務(wù)器用于辨識自己的主機(jī)名和端口號 | |||
ServerPath URL-path | v | C | |
為兼容性不好的瀏覽器訪問基于域名的虛擬主機(jī)保留的URL路徑名 | |||
ServerRoot directory-path | /usr/local/apache | s | C |
安裝服務(wù)器的基礎(chǔ)目錄 | |||
ServerSignature On|Off|EMail | Off | svdh | C |
配置服務(wù)器生成頁面的頁腳 | |||
ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full | Full | s | C |
配置"Server:"應(yīng)答頭 | |||
SetEnv env-variable value | svdh | B | |
設(shè)置環(huán)境變量 | |||
SetEnvIf attribute regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
根據(jù)客戶端請求屬性設(shè)置環(huán)境變量 | |||
SetEnvIfNoCase attribute regex [!]env-variable[=value] [[!]env-variable[=value]] ... | svdh | B | |
根據(jù)大小寫無關(guān)的客戶端請求屬性設(shè)置環(huán)境變量 | |||
SetHandler handler-name|None | svdh | C | |
強(qiáng)制所有匹配的文件被一個指定的處理器處理 | |||
SetInputFilter filter[;filter...] | svdh | C | |
設(shè)置處理客戶端請求和POST輸入時使用的過濾器 | |||
SetOutputFilter filter[;filter...] | svdh | C | |
設(shè)置用于處理服務(wù)器輸出應(yīng)答的過濾器 | |||
SSIEndTag tag | "-->" | sv | B |
String that ends an include element | |||
SSIErrorMsg message | "[an error occurred + | svdh | B |
Error message displayed when there is an SSI error | |||
SSIStartTag tag | "<!--#" | sv | B |
String that starts an include element | |||
SSITimeFormat formatstring | "%A, %d-%b-%Y %H:%M + | svdh | B |
Configures the format in which date strings are displayed | |||
SSIUndefinedEcho string | "(none)" | svdh | B |
String displayed when an unset variable is echoed | |||
SSLCACertificateFile file-path | sv | E | |
File of concatenated PEM-encoded CA Certificates for Client Auth | |||
SSLCACertificatePath directory-path | sv | E | |
Directory of PEM-encoded CA Certificates for Client Auth | |||
SSLCADNRequestFile file-path | sv | E | |
File of concatenated PEM-encoded CA Certificates for defining acceptable CA names | |||
SSLCADNRequestPath directory-path | sv | E | |
Directory of PEM-encoded CA Certificates for defining acceptable CA names | |||
SSLCARevocationFile file-path | sv | E | |
File of concatenated PEM-encoded CA CRLs for Client Auth | |||
SSLCARevocationPath directory-path | sv | E | |
Directory of PEM-encoded CA CRLs for Client Auth | |||
SSLCertificateChainFile file-path | sv | E | |
File of PEM-encoded Server CA Certificates | |||
SSLCertificateFile file-path | sv | E | |
Server PEM-encoded X.509 Certificate file | |||
SSLCertificateKeyFile file-path | sv | E | |
Server PEM-encoded Private Key file | |||
SSLCipherSuite cipher-spec | ALL:!ADH:RC4+RSA:+H + | svdh | E |
Cipher Suite available for negotiation in SSL handshake | |||
SSLCryptoDevice engine | builtin | s | E |
Enable use of a cryptographic hardware accelerator | |||
SSLEngine on|off|optional | off | sv | E |
SSL Engine Operation Switch | |||
SSLHonorCiperOrder flag | sv | E | |
Option to prefer the server's cipher preference order | |||
SSLMutex type | none | s | E |
Semaphore for internal mutual exclusion of operations | |||
SSLOptions [+|-]option ... | svdh | E | |
Configure various SSL engine run-time options | |||
SSLPassPhraseDialog type | builtin | s | E |
Type of pass phrase dialog for encrypted private keys | |||
SSLProtocol [+|-]protocol ... | all | sv | E |
Configure usable SSL protocol flavors | |||
SSLProxyCACertificateFile file-path | sv | E | |
File of concatenated PEM-encoded CA Certificates for Remote Server Auth | |||
SSLProxyCACertificatePath directory-path | sv | E | |
Directory of PEM-encoded CA Certificates for Remote Server Auth | |||
SSLProxyCARevocationFile file-path | sv | E | |
File of concatenated PEM-encoded CA CRLs for Remote Server Auth | |||
SSLProxyCARevocationPath directory-path | sv | E | |
Directory of PEM-encoded CA CRLs for Remote Server Auth | |||
SSLProxyCipherSuite cipher-spec | ALL:!ADH:RC4+RSA:+H + | svdh | E |
Cipher Suite available for negotiation in SSL proxy handshake | |||
SSLProxyEngine on|off | off | sv | E |
SSL Proxy Engine Operation Switch | |||
SSLProxyMachineCertificateFile filename | s | E | |
File of concatenated PEM-encoded client certificates and keys to be used by the proxy | |||
SSLProxyMachineCertificatePath directory | s | E | |
Directory of PEM-encoded client certificates and keys to be used by the proxy | |||
SSLProxyProtocol [+|-]protocol ... | all | sv | E |
Configure usable SSL protocol flavors for proxy usage | |||
SSLProxyVerify level | none | svdh | E |
Type of remote server Certificate verification | |||
SSLProxyVerifyDepth number | 1 | svdh | E |
Maximum depth of CA Certificates in Remote Server Certificate verification | |||
SSLRandomSeed context source [bytes] | s | E | |
Pseudo Random Number Generator (PRNG) seeding source | |||
SSLRequire expression | dh | E | |
Allow access only when an arbitrarily complex boolean expression is true | |||
SSLRequireSSL | dh | E | |
Deny access when SSL is not used for the HTTP request | |||
SSLSessionCache type | none | s | E |
Type of the global/inter-process SSL Session Cache | |||
SSLSessionCacheTimeout seconds | 300 | sv | E |
Number of seconds before an SSL session expires in the Session Cache | |||
SSLUserName varname | sdh | E | |
Variable name to determine user name | |||
SSLVerifyClient level | none | svdh | E |
Type of Client Certificate verification | |||
SSLVerifyDepth number | 1 | svdh | E |
Maximum depth of CA Certificates in Client Certificate verification | |||
StartServers number | s | M | |
服務(wù)器啟動時建立的子進(jìn)程數(shù) | |||
StartThreads number | s | M | |
服務(wù)器啟動時建立的線程數(shù) | |||
SuexecUserGroup User Group | sv | E | |
運(yùn)行CGI程序的用戶和組 | |||
ThreadLimit number | s | M | |
每個子進(jìn)程可配置的線程數(shù)上限 | |||
ThreadsPerChild number | s | M | |
每個子進(jìn)程建立的線程數(shù) | |||
ThreadStackSize size | s | M | |
處理客戶端連接的線程使用的棧尺寸(字節(jié)) | |||
TimeOut seconds | 300 | s | C |
服務(wù)器在斷定請求失敗前等待的秒數(shù) | |||
TraceEnable [on|off|extended] | on | s | C |
確定如何處理TRACE請求 | |||
TransferLog file|pipe | sv | B | |
指定日志文件的位置 | |||
TypesConfig file-path | conf/mime.types | s | B |
指定mime.types文件的位置 | |||
UnsetEnv env-variable [env-variable] ... | svdh | B | |
刪除一個環(huán)境變量 | |||
UseCanonicalName On|Off|DNS | Off | svd | C |
配置服務(wù)器如何確定它自己的域名和端口 | |||
UseCanonicalPhysicalPort On|Off | Off | svd | C |
配置服務(wù)器如何確定自己的名字和端口 | |||
User unix-userid | #-1 | s | M |
實(shí)際服務(wù)于請求的子進(jìn)程運(yùn)行時的用戶 | |||
UserDir directory-filename | sv | B | |
用戶網(wǎng)站目錄的位置 | |||
VirtualDocumentRoot interpolated-directory|none | none | sv | E |
對于給定的基于名稱的虛擬主機(jī)動態(tài)配置根文檔目錄 | |||
VirtualDocumentRootIP interpolated-directory|none | none | sv | E |
對于給定的基于IP的虛擬主機(jī)動態(tài)配置根文檔目錄 | |||
<VirtualHost addr[:port] [addr[:port]] ...> ... </VirtualHost> | s | C | |
包含僅作用于指定主機(jī)名或IP地址的指令 | |||
VirtualScriptAlias interpolated-directory|none | none | sv | E |
對于給定的基于名稱的虛擬主機(jī)動態(tài)配置CGI目錄 | |||
VirtualScriptAliasIP interpolated-directory|none | none | sv | E |
對于給定的基于IP的虛擬主機(jī)動態(tài)配置CGI目錄 | |||
Win32DisableAcceptEx | s | M | |
使用accept()代替AcceptEx()接受網(wǎng)絡(luò)鏈接 | |||
XBitHack on|off|full | off | svdh | B |
Parse SSI directives in files with the execute bit set |