您正在查看: Apache 分类下的文章

apache设置静态文件缓存方法介绍

apache中我们要实现缓存文件需要开户mod_expires模块,缓存功能实现之后我们可以提升服务器的性能(缩短服务的响应时间、减轻服务器负担、减少网络带宽使用量)
为了减少客户端对服务端资源的请求,可以开启mod_expires.so模块

#LoadModule expires_module modules/mod_expires.so    去掉前面的#号

ExpiresActive on
#缓存6天。
ExpiresBytype text/css "access plus 6 days
ExpiresByType application/x-javascript "access plus 6 days "
ExpiresByType image/jpeg "access plus 6 days "
Expiresbytype image/gif "access plus 6 days "
ExpiresByType image/png"access plus 6 days "


<IfModule mod_expires.c>
# mod_expires
ExpiresActive on
ExpiresDefault A864000
ExpiresBytype text/css “access plus 14 days
ExpiresByType text/javascript “access plus 14 days ”
ExpiresByType application/x-javascript “access plus 14 days ”
ExpiresByType application/x-shockwave-flash “access plus 14 days ”
ExpiresByType image/* “access plus 14 days ”
ExpiresByType text/html “access plus 14 days ”
<FilesMatch “.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|jpg|gif)$”>
ExpiresDefault A864000
</FilesMatch>
</IfModule>

Apache Rewrite 规则用法详解

apache Rewrite是apache服务器一个规则,用处多又多,下面是Apache Rewrite用法,有需要的可参考一下。

所以了解Apache的rewrite规则非常重要,可以实现URL的伪静态。或者做301跳转。

rewrite标志
R[=code](force redirect) 强制外部重定向

强制在替代字符串加上
http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定,将用缺省的302 HTTP状态码。

F(force URL to be forbidden) 禁用URL,返回403 HTTP状态码。
G(force URL to be gone) 强制URL为GONE,返回410HTTP状态码。
P(force proxy) 强制使用代理转发。
L(last rule) 表明当前规则是最后一条规则,停止分析以后规则的重写。
N(next round) 重新从第一条规则开始运行重写过程。
C(chained with next rule) 与下一条规则关联>
如果规则匹配则正常处理,该标志无效,如果不匹配,那么下面所有关联的规则都跳过。
T=MIME-type(force MIME type) 强制MIME类型
NS (used only if no internal sub-request) 只用于不是内部子请求
NC(no case) 不区分大小写
QSA(query string append) 追加请求字符串
NE(no URI escaping of output) 不在输出转义特殊字符
例如:RewriteRule /foo/(.*) /bar?arg=P1%3d$1 [R,NE]
将能正确的将/foo/zoo转换成/bar?arg=P1=zed
PT(pass through to next handler) 传递给下一个处理

例如:

RewriteRule ^/index(.*) /def$1 [PT] # 将会交给/def规则处理
Alias /def /ghi
S=num(skip next rule(s)) 跳过num条规则 E=VAR:VAL(set environment variable) 设置环境变量

rewrite时服务器变量:

HTTP headers:HTTP_USER_AGENT, HTTP_REFERER, HTTP_COOKIE,HTTP_HOST, HTTP_ACCEPT
connection & request: REMOTE_ADDR, QUERY_STRING
server internals: DOCUMENT_ROOT,SERVER_PORT, SERVER_PROTOCOL
system stuff: TIME_YEAR, TIME_MON, TIME_DAY

Apache的URL Rewrite配置多用户虚拟服务器。
比如,我就把 *.siddim.cn和 *.siddim.com全部解析到IP地址10.207.4.55上。
然后,看一下我的Apache虚拟主机的设定。

ServerAdmin webmaster@siddim.cn
DocumentRoot /home/www/
ServerName www.siddim.com
CustomLog /var/log/access_log.log” common
ErrorLog /var/log/error_log.log”
AllowOverride None
Order deny,allow

#AddDefaultCharset GB2312

RewriteEngine on
RewriteCond %{HTTP_HOST} ^[^.]+.siddim.(com|cn)$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([^.]+).siddim.(com|cn)(.*)$ /home/www/s$3?un=$1&%{QUERY_STRING} [L]

Rewrite规则表达式的说明:

. 匹配任何单字符
[chars] 匹配字符串:chars
[^chars] 不匹配字符串:chars
text1|text2 可选择的字符串:text1或text2
? 匹配0到1个字符

  • 匹配0到多个字符
  • 匹配1到多个字符
    ^ 字符串开始标志
    $ 字符串结束标志
    n 转义符标志

反向引用 $N 用于 RewriteRule 中匹配的变量调用(0 <= N <= 9)
反向引用 %N 用于 RewriteCond
中最后一个匹配的变量调用(1 <= N <= 9)

RewriteCond标志符
'nocase|NC'(no case)忽略大小
'ornext|OR' (or next condition)逻辑或,可以同时匹配多个RewriteCond条件

RewriteRule适用的标志符
'redirect|R [=code]' (force redirect)强迫重写为基于http开头的外部转向(注意URL的变化)
如:[R=301,L]
如果你用的是 Windows主机,应该在控制面板做301转向设定。

301跳转

RewriteEngine on
rewriteCond %{http_host} ^siddim.com [NC]
rewriteRule ^(.*)$ http://www.siddim.com/$1 [R=301,L]

第一行表示开启urlrewrite
第二三行表示将 你的网址.com 后面的任何链接形式定向到 www.你的网址.com 对应的链接 如你的网址.com/weclome/index.html将会对应到www.你的网址.com/weclome/index.html

'forbidden|F' (force URL to be forbidden)重写为禁止访问
'proxy|P' (force proxy)重写为通过代理访问的http路径
'last|L' (last rule)最后的重写规则标志,如果匹配,不再执行以后的规则
'next|N' (next round)循环同一个规则,直到不能满足匹配
'chain|C' (chained with next rule)如果匹配该规则,则继续下面的有Chain标志的规则。
'type|T=MIME-type' (force MIME type)指定MIME类型
'nosubreq|NS'(used only if no internal sub-request)如果是内部子请求则跳过
'nocase|NC' (no case)忽略大小
'qsappend|QSA' (query string append)附加查询字符串
'noescape|NE' (no URI escaping of output)禁止URL中的字符自动转义成%[0-9]+的形式。
'passthrough|PT' (pass through to next handler)将重写结果运用于mod_alias
'skip|S=num' (skip next rule(s))跳过下面几个规则
'env|E=VAR:VAL' (set environment variable)添加环境变量

apache url rewrite实现url重写配置详解

配置步骤:
第一步:找到apache的配置文件httpd.conf(文件在conf目录下)
第二步:你首先必须得让服务器支持mod_rewrite,如果你使用的是虚拟主机,请事先询问你的主机提供商。
打开httpd.conf,找到

#LoadModule rewrite_module modules/mod_rewrite.so
把#去掉
找到AllowOverride None 改成 AllowOverride All,
注:AllowOverride 的参数设置为ALL,表示整台服务器上都支持URL规则重写。apache 服务器要读每个网站下目录下的 .htaccess 文件。如果没有这个文件,或者这个文档没有定义任何关于URL重写的规则就不会有任何效果。

实例301跳转
例一.下面是在一个虚拟主机里定义的规则。功能是把client请求的主机前缀不是www.111cn.net和70.40.213.183都跳转到主机前缀为http://www.111cn.net,避免相同内容的网页有多个指向的域名,如http://111cn.net。

NameVirtualHost localhost:80 
ServerAdmin siddim@siddim.com 
DocumentRoot "/html/" 
ServerName www.siddim.com
RewriteEngine on #打开rewirte功能 
RewriteCond %{HTTP_HOST} !^www.siddim.com [NC] #声明Client请求的主机中前缀不是www.siddim.com,其中 [NC] 的意思是忽略大小写 
RewriteCond %{HTTP_HOST} !^blog.siddim.com [NC] #声明Client请求的主机中前缀不是blog.siddim.com,其中 [NC] 的意思是忽略大小写 
RewriteCond %{HTTP_HOST} !^$ #声明Client请求的主机中前缀不为空 
RewriteRule ^(.*) http://www.siddim.com/ [L] #含义是如果Client请求的主机中的前缀符合上述条件,则直接进行跳转到http://www.siddim.com/,[L]意味着立即停止重写操作,并不再应用其他重写规则。这里的.*是指匹配所有URL中不包含换行字符,()括号的功能是把所有的字符做一个标记,以便于后面的应用.就是引用前面里的 (.*)字符。

例二.将输入 about.siddim.com 的域名时跳转到www.siddim.com

RewriteEngine on 
RewriteCond %{HTTP_HOST} ^about.siddim.com [NC] 
RewriteRule ^(.*) http://www.siddim.com / [L]

实现 伪静态在每个虚拟主机的地方设置Rewrite参数


ServerAdmin admin@siddim.com
DocumentRoot "/html/"
ServerName localhost
RewriteEngine on
RewriteRule /([0-9]+).html /news.jsp?id=$1 [PT]
RewriteRule /([0-9]+)_([0-9]+).html /news.jsp?id=$1&id2=$2 [PT] #PT(移交给下一个处理器) 
此标记强制重写引擎将内部request_rec结构中的uri字段设置为filename字段的值,这个小小的修改使得

指令索引 - Apache 2.2 中文版参考手册

apache > HTTP Server > 文档 > 版本2.2 > 模块
   致谢 | 译者声明 | 本篇译者:金步国 | 本页最后更新:2006年1月21日 | 获取最新版本
指令索引

这里列示了apache标准发行版中的所有指令。指令的描述采用统一的格式,其中用到的缩略语在指令术语字典有详细说明。

指令速查以概要形式提供了每个指令的细节。

 A  |  B  |  C  |  D  |  E  |  F  |  G  |  H  |  I  |  K  |  L  |  M  |  N  |  O  |  P  |  R  |  S  |  T  |  U  |  V  |  W  |  X 

  • AcceptFilter
  • AcceptMutex
  • AcceptPathInfo
  • AccessFileName
  • Action
  • AddAlt
  • AddAltByEncoding
  • AddAltByType
  • AddCharset
  • AddDefaultCharset
  • AddDescription
  • AddEncoding
  • AddHandler
  • AddIcon
  • AddIconByEncoding
  • AddIconByType
  • AddInputFilter
  • AddLanguage
  • AddModuleInfo
  • AddOutputFilter
  • AddOutputFilterByType
  • AddType
  • Alias
  • AliasMatch
  • Allow
  • AllowCONNECT
  • AllowEncodedSlashes
  • AllowOverride
  • Anonymous
  • Anonymous_LogEmail
  • Anonymous_MustGiveEmail
  • Anonymous_NoUserID
  • Anonymous_VerifyEmail
  • AuthBasicAuthoritative
  • AuthBasicProvider
  • AuthDBDUserPWQuery
  • AuthDBDUserRealmQuery
  • AuthDBMGroupFile
  • AuthDBMType
  • AuthDBMUserFile
  • AuthDefaultAuthoritative
  • AuthDigestAlgorithm
  • AuthDigestDomain
  • AuthDigestNcCheck
  • AuthDigestNonceFormat
  • AuthDigestNonceLifetime
  • AuthDigestProvider
  • AuthDigestQop
  • AuthDigestShmemSize
  • AuthGroupFile
  • AuthLDAPBindDN
  • AuthLDAPBindPassword
  • AuthLDAPCharsetConfig
  • AuthLDAPCompareDNOnServer
  • AuthLDAPDereferenceAliases
  • AuthLDAPGroupAttribute
  • AuthLDAPGroupAttributeIsDN
  • AuthLDAPRemoteUserIsDN
  • AuthLDAPUrl
  • AuthName
  • <AuthnProviderAlias>
  • AuthType
  • AuthUserFile
  • AuthzDBMAuthoritative
  • AuthzDBMType
  • AuthzDefaultAuthoritative
  • AuthzGroupFileAuthoritative
  • AuthzLDAPAuthoritative
  • AuthzOwnerAuthoritative
  • AuthzUserAuthoritative
  • BrowserMatch
  • BrowserMatchNoCase
  • BufferedLogs
  • CacheDefaultExpire
  • CacheDirLength
  • CacheDirLevels
  • CacheDisable
  • CacheEnable
  • CacheFile
  • CacheIgnoreCacheControl
  • CacheIgnoreHeaders
  • CacheIgnoreNoLastMod
  • CacheLastModifiedFactor
  • CacheMaxExpire
  • CacheMaxFileSize
  • CacheMinFileSize
  • CacheNegotiatedDocs
  • CacheRoot
  • CacheStoreNoStore
  • CacheStorePrivate
  • CGIMapExtension
  • CharsetDefault
  • CharsetOptions
  • CharsetSourceEnc
  • CheckSpelling
  • ContentDigest
  • CookieDomain
  • CookieExpires
  • CookieLog
  • CookieName
  • CookieStyle
  • CookieTracking
  • CoreDumpDirectory
  • CustomLog
  • Dav
  • DavDepthInfinity
  • DavGenericLockDB
  • DavLockDB
  • DavMinTimeout
  • DBDExptime
  • DBDKeep
  • DBDMax
  • DBDMin
  • DBDParams
  • DBDPersist
  • DBDPrepareSQL
  • DBDriver
  • DefaultIcon
  • DefaultLanguage
  • DefaultType
  • DeflateBufferSize
  • DeflateCompressionLevel
  • DeflateFilterNote
  • DeflateMemLevel
  • DeflateWindowSize
  • Deny
  • <Directory>
  • DirectoryIndex
  • <DirectoryMatch>
  • DirectorySlash
  • DocumentRoot
  • DumpIOInput
  • DumpIOOutput
  • EnableExceptionHook
  • EnableMMAP
  • EnableSendfile
  • ErrorDocument
  • ErrorLog
  • Example
  • ExpiresActive
  • ExpiresByType
  • ExpiresDefault
  • ExtendedStatus
  • ExtFilterDefine
  • ExtFilterOptions
  • FileETag
  • <Files>
  • <FilesMatch>
  • FilterChain
  • FilterDeclare
  • FilterProtocol
  • FilterProvider
  • FilterTrace
  • ForceLanguagePriority
  • ForceType
  • ForensicLog
  • GracefulShutdownTimeout
  • Group
  • Header
  • HeaderName
  • HostnameLookups
  • IdentityCheck
  • IdentityCheckTimeout
  • <IfDefine>
  • <IfModule>
  • <IfVersion>
  • ImapBase
  • ImapDefault
  • ImapMenu
  • Include
  • IndexIgnore
  • IndexOptions
  • IndexOrderDefault
  • IndexStyleSheet
  • ISAPIAppendLogToErrors
  • ISAPIAppendLogToQuery
  • ISAPICacheFile
  • ISAPIFakeAsync
  • ISAPILogNotSupported
  • ISAPIReadAheadBuffer
  • KeepAlive
  • KeepAliveTimeout
  • LanguagePriority
  • LDAPCacheEntries
  • LDAPCacheTTL
  • LDAPConnectionTimeout
  • LDAPOpCacheEntries
  • LDAPOpCacheTTL
  • LDAPSharedCacheFile
  • LDAPSharedCacheSize
  • LDAPTrustedClientCert
  • LDAPTrustedGlobalCert
  • LDAPTrustedMode
  • LDAPVerifyServerCert
  • <Limit>
  • <LimitExcept>
  • LimitInternalRecursion
  • LimitRequestBody
  • LimitRequestFields
  • LimitRequestFieldSize
  • LimitRequestLine
  • LimitXMLRequestBody
  • Listen
  • ListenBackLog
  • LoadFile
  • LoadModule
  • <Location>
  • <LocationMatch>
  • LockFile
  • LogFormat
  • LogLevel
  • MaxClients
  • MaxKeepAliveRequests
  • MaxMemFree
  • MaxRequestsPerChild
  • MaxRequestsPerThread
  • MaxSpareServers
  • MaxSpareThreads
  • MaxThreads
  • MCacheMaxObjectCount
  • MCacheMaxObjectSize
  • MCacheMaxStreamingBuffer
  • MCacheMinObjectSize
  • MCacheRemovalAlgorithm
  • MCacheSize
  • MetaDir
  • MetaFiles
  • MetaSuffix
  • MimeMagicFile
  • MinSpareServers
  • MinSpareThreads
  • MMapFile
  • ModMimeUsePathInfo
  • MultiviewsMatch
  • NameVirtualHost
  • NoProxy
  • NWSSLTrustedCerts
  • NWSSLUpgradeable
  • Options
  • Order
  • PassEnv
  • PidFile
  • ProtocolEcho
  • <Proxy>
  • ProxyBadHeader
  • ProxyBlock
  • ProxyDomain
  • ProxyErrorOverride
  • ProxyIOBufferSize
  • <ProxyMatch>
  • ProxyMaxForwards
  • ProxyPass
  • ProxyPassReverse
  • ProxyPassReverseCookieDomain
  • ProxyPassReverseCookiePath
  • ProxyPreserveHost
  • ProxyReceiveBufferSize
  • ProxyRemote
  • ProxyRemoteMatch
  • ProxyRequests
  • ProxyTimeout
  • ProxyVia
  • ReadmeName
  • ReceiveBufferSize
  • Redirect
  • RedirectMatch
  • RedirectPermanent
  • RedirectTemp
  • RemoveCharset
  • RemoveEncoding
  • RemoveHandler
  • RemoveInputFilter
  • RemoveLanguage
  • RemoveOutputFilter
  • RemoveType
  • RequestHeader
  • Require
  • RewriteBase
  • RewriteCond
  • RewriteEngine
  • RewriteLock
  • RewriteLog
  • RewriteLogLevel
  • RewriteMap
  • RewriteOptions
  • RewriteRule
  • RLimitCPU
  • RLimitMEM
  • RLimitNPROC
  • Satisfy
  • ScoreBoardFile
  • Script
  • ScriptAlias
  • ScriptAliasMatch
  • ScriptInterpreterSource
  • ScriptLog
  • ScriptLogBuffer
  • ScriptLogLength
  • ScriptSock
  • SecureListen
  • SendBufferSize
  • ServerAdmin
  • ServerAlias
  • ServerLimit
  • ServerName
  • ServerPath
  • ServerRoot
  • ServerSignature
  • ServerTokens
  • SetEnv
  • SetEnvIf
  • SetEnvIfNoCase
  • SetHandler
  • SetInputFilter
  • SetOutputFilter
  • SSIEndTag
  • SSIErrorMsg
  • SSIStartTag
  • SSITimeFormat
  • SSIUndefinedEcho
  • SSLCACertificateFile
  • SSLCACertificatePath
  • SSLCADNRequestFile
  • SSLCADNRequestPath
  • SSLCARevocationFile
  • SSLCARevocationPath
  • SSLCertificateChainFile
  • SSLCertificateFile
  • SSLCertificateKeyFile
  • SSLCipherSuite
  • SSLCryptoDevice
  • SSLEngine
  • SSLHonorCipherOrder
  • SSLMutex
  • SSLOptions
  • SSLPassPhraseDialog
  • SSLProtocol
  • SSLProxyCACertificateFile
  • SSLProxyCACertificatePath
  • SSLProxyCARevocationFile
  • SSLProxyCARevocationPath
  • SSLProxyCipherSuite
  • SSLProxyEngine
  • SSLProxyMachineCertificateFile
  • SSLProxyMachineCertificatePath
  • SSLProxyProtocol
  • SSLProxyVerify
  • SSLProxyVerifyDepth
  • SSLRandomSeed
  • SSLRequire
  • SSLRequireSSL
  • SSLSessionCache
  • SSLSessionCacheTimeout
  • SSLUserName
  • SSLVerifyClient
  • SSLVerifyDepth
  • StartServers
  • StartThreads
  • SuexecUserGroup
  • ThreadLimit
  • ThreadsPerChild
  • ThreadStackSize
  • TimeOut
  • TraceEnable
  • TransferLog
  • TypesConfig
  • UnsetEnv
  • UseCanonicalName
  • UseCanonicalPhysicalPort
  • User
  • UserDir
  • VirtualDocumentRoot
  • VirtualDocumentRootIP
  • <VirtualHost>
  • VirtualScriptAlias
  • VirtualScriptAliasIP
  • win32DisableAcceptEx
  • XBitHack

指令速查 - Apache 2.2 中文版参考手册

apache > HTTP Server > 文档 > 版本2.2 > 模块
   致谢 | 译者声明 | 本篇译者:金步国 | 本篇译稿最后更新:?年?月?日 | 获取最新版本
指令速查

指令速查列出了每个指令的用法、默认值、状态和作用域。更详细的说明可以查阅指令字典。

第一列是指令的名称和用法;
第二列是指令的默认值(如果存在),如果很长写不下,则后面跟有"+"表示截断。
第三和第四列是指令允许出现的位置和状态,其中缩略语如下表所示:

 A  |  B  |  C  |  D  |  E  |  F  |  G  |  H  |  I  |  K  |  L  |  M  |  N  |  O  |  P  |  R  |  S  |  T  |  U  |  V  |  W  |  X svdh
server config
virtual host
directory
.htaccess
CMBEX
核心模块
MPM
基本模块
扩展模块
试验模块
AcceptFilter protocol accept_filtersC
根据协议类型对监听Socket进行优化
AcceptMutex Default|method Default sM
apache用于串行化多个子进程在(多个)网络套接字(socket)上接受请求的方法
AcceptPathInfo On|Off|Default Default svdhC
是否接受附带多余路径名信息的请求
AccessFileName filename [filename] ... .htaccess svC
分布式配置文件的名字
Action action-type cgi-script [virtual]svdhB
针对特定的处理器或内容类型激活一个CGI脚本
AddAlt string file [file] ...svdhB
Alternate text to display for a file, instead of an icon selected by filename
AddAltByEncoding string MIME-encoding [MIME-encoding] ...svdhB
Alternate text to display for a file instead of an icon selected by MIME-encoding
AddAltByType string MIME-type [MIME-type] ...svdhB
Alternate text to display for a file, instead of an icon selected by MIME content-type
AddCharset charset extension [extension] ...svdhB
在给定的文件扩展名与特定的字符集之间建立映射
AddDefaultCharset On|Off|charset Off svdhC
当应答内容是text/plain或text/html时,在HTTP应答头中加入的默认字符集
AddDescription string file [file] ...svdhB
Description to display for a file
AddEncoding MIME-enc extension [extension] ...svdhB
在文件扩展名与特定的编码方式之间建立映射关系
AddHandler handler-name extension [extension] ...svdhB
在文件扩展名与特定的处理器之间建立映射
AddIcon icon name [name] ...svdhB
Icon to display for a file selected by name
AddIconByEncoding icon MIME-encoding [MIME-encoding] ...svdhB
Icon to display next to files selected by MIME content-encoding
AddIconByType icon MIME-type [MIME-type] ...svdhB
Icon to display next to files selected by MIME content-type
AddInputFilter filter[;filter...] extension [extension] ...svdhB
在文件扩展名与特定的输入过滤器之间建立映射
AddLanguage MIME-lang extension [extension] ...svdhB
在文件扩展名与特定的语言之间建立映射
AddModuleInfo module-name stringsvE
为server-info处理器显示的模块增加额外信息
AddOutputFilter filter[;filter...] extension [extension] ...svdhB
在文件扩展名与特定的输出过滤器之间建立映射关系
AddOutputFilterByType filter[;filter...] MIME-type [MIME-type] ...svdhC
对特定的MIME类型指定输出过滤器
AddType MIME-type extension [extension] ...svdhB
在给定的文件扩展名与特定的内容类型之间建立映射
Alias URL-path file-path|directory-pathsvB
映射URL到文件系统的特定区域
AliasMatch regex file-path|directory-pathsvB
使用正则表达式映射URL到文件系统
Allow from all|host|env=env-variable [host|env=env-variable] ...dhB
控制哪些主机能够访问服务器的该区域
AllowCONNECT port [port] ... 443 563 svE
通过代理允许CONNECT的端口号
AllowEncodedSlashes On|Off Off svC
确定是否允许URL中使用经过编码的路径分割符
AllowOverride All|None|directive-type [directive-type] ... All dC
确定允许存在于.htaccess文件中的指令类型
Anonymous user [user] ...dhE
Specifies userIDs that are allowed access without password verification
Anonymous_LogEmail On|Off On dhE
Sets whether the password entered will be logged in the error log
Anonymous_MustGiveEmail On|Off On dhE
Specifies whether blank passwords are allowed
Anonymous_NoUserID On|Off Off dhE
Sets whether the userID field may be empty
Anonymous_VerifyEmail On|Off Off dhE
Sets whether to check the password field for a correctly formatted email address
AuthBasicAuthoritative On|Off On dhB
指定是否将(基本)认证和授权操作交由更底层的模块来处理
AuthBasicProvider provider-name [provider-name] ... file dhB
设置该区域的(基本)认证支持者(Provider)
AuthDBDUserPWQuery querydE
SQL query to look up a password for a user
AuthDBDUserRealmQuery querydE
SQL query to look up a password hash for a user and realm.
AuthDBMGroupFile file-pathdhE
Sets the name of the database file containing the list of user groups for authorization
AuthDBMType default|SDBM|GDBM|NDBM|DB default dhE
Sets the type of database file that is used to store passwords
AuthDBMUserFile file-pathdhE
Sets the name of a database file containing the list of users and passwords for authentication
AuthDefaultAuthoritative On|Off On dhB
指定是否将认证操作交由更底层的模块来处理
AuthDigestAlgorithm MD5|MD5-sess MD5 dhX
选择在摘要认证中用于计算请求和应答的散列值的算法
AuthDigestDomain URI [URI] ...dhX
在同一保护区域中需要进行摘要认证的URI
AuthDigestNcCheck On|Off Off sX
Enables or disables checking of the nonce-count sent by the server
AuthDigestNonceFormat formatdhX
Determines how the nonce is generated
AuthDigestNonceLifetime seconds 300 dhX
服务器nonce(当前值)的有效秒数
AuthDigestProvider provider-name [provider-name] ... file dhX
设置该区域的(摘要)认证支持者(Provider)
AuthDigestQop none|auth|auth-int [auth|auth-int] auth dhX
指定摘要认证的保护质量
AuthDigestShmemSize size 1000 sX
为了跟踪客户端而分配的共享内存字节数
AuthGroupFile file-pathdhB
设定一个包含用于执行用户认证的用户组列表的纯文本文件
AuthLDAPBindDN distinguished-namedhE
Optional DN to use in binding to the LDAP server
AuthLDAPBindPassword passworddhE
Password used in conjuction with the bind DN
AuthLDAPCharsetConfig file-pathsE
Language to charset conversion configuration file
AuthLDAPCompareDNOnServer on|off on dhE
Use the LDAP server to compare the DNs
AuthLDAPDereferenceAliases never|searching|finding|always Always dhE
When will the module de-reference aliases
AuthLDAPGroupAttribute attributedhE
LDAP attributes used to check for group membership
AuthLDAPGroupAttributeIsDN on|off on dhE
Use the DN of the client username when checking for group membership
AuthLDAPRemoteUserIsDN on|off off dhE
Use the DN of the client username to set the REMOTE_USER environment variable
AuthLDAPUrl url [NONE|SSL|TLS|STARTTLS]dhE
URL specifying the LDAP search parameters
AuthName auth-domaindhC
用于HTTP认证的授权域
<AuthnProviderAlias baseProvider Alias> ... </AuthnProviderAlias>svE
封装一组定义扩展认证支持者的指令,并为其指定一个别名
AuthType Basic|DigestdhC
用户认证类型
AuthUserFile file-pathdhB
设定一个含有认证使用的用户名/密码列表的纯文本文件
AuthzDBMAuthoritative On|Off On dhE
Sets whether authorization will be passed on to lower level modules
AuthzDBMType default|SDBM|GDBM|NDBM|DB default dhE
Sets the type of database file that is used to store list of user groups
AuthzDefaultAuthoritative On|Off On dhB
指定是否将授权操作交由更底层的模块来处理
AuthzGroupFileAuthoritative On|Off On dhB
指定是否将授权操作交由更底层的模块来处理
AuthzLDAPAuthoritative on|off on dhE
Prevent other authentication modules from authenticating the user if this one fails
AuthzOwnerAuthoritative On|Off On dhE
指定是否将授权操作交由更底层的模块来处理
AuthzUserAuthoritative On|Off On dhB
指定是否将授权操作交由更底层的模块来处理
BrowserMatch regex [!]env-variable[=value] [[!]env-variable[=value]] ...svdhB
基于User-Agent头有条件地设置环境变量
BrowserMatchNoCase regex [!]env-variable[=value] [[!]env-variable[=value]] ...svdhB
基于不区分大小写的User-Agent头有条件地设置环境变量
BufferedLogs On|Off Off sB
在将日志写入磁盘前先在内存中进行缓冲
CacheDefaultExpire seconds 3600 (one hour) svE
The default duration to cache a document when no expiry date is specified.
CacheDirLength length 2 svE
The number of characters in subdirectory names
CacheDirLevels levels 3 svE
The number of levels of subdirectories in the cache.
CacheDisable url-stringsvE
Disable caching of specified URLs
CacheEnable cache_type url-stringsvE
Enable caching of specified URLs using a specified storage manager
CacheFile file-path [file-path] ...sX
Cache a list of file handles at startup time
CacheIgnoreCacheControl On|Off Off svE
Ignore request to not serve cached content to client
CacheIgnoreHeaders header-string [header-string] ... None svE
Do not store the given HTTP header(s) in the cache.
CacheIgnoreNoLastMod On|Off Off svE
Ignore the fact that a response has no Last Modified header.
CacheLastModifiedFactor float 0.1 svE
The factor used to compute an expiry date based on the LastModified date.
CacheMaxExpire seconds 86400 (one day) svE
The maximum time in seconds to cache a document
CacheMaxFileSize bytes 1000000 svE
The maximum size (in bytes) of a document to be placed in the cache
CacheMinFileSize bytes 1 svE
The minimum size (in bytes) of a document to be placed in the cache
CacheNegotiatedDocs On|Off Off svB
允许经过内容协商的文档被代理服务器缓存
CacheRoot directorysvE
The directory root under which cache files are stored
CacheStoreNoStore On|Off Off svE
Attempt to cache requests or responses that have been marked as no-store.
CacheStorePrivate On|Off Off svE
Attempt to cache responses that the server has marked as private
CGIMapExtension cgi-path .extensiondhC
定位CGI脚本解释器
CharsetDefault charsetsvdhX
Charset to translate into
CharsetOptions option [option] ... DebugLevel=0 NoImpl +svdhX
Configures charset translation behavior
CharsetSourceEnc charsetsvdhX
Source charset of files
CheckSpelling on|off Off svdhE
Enables the spelling module
ContentDigest On|Off Off svdhC
允许生成Content-MD5应答头
CookieDomain domainsvdhE
The domain to which the tracking cookie applies
CookieExpires expiry-periodsvdhE
Expiry time for the tracking cookie
CookieLog filenamesvB
设定针对cookies的日志文件名
CookieName token Apache svdhE
Name of the tracking cookie
CookieStyle Netscape|Cookie|Cookie2|RFC2109|RFC2965 Netscape svdhE
Format of the cookie header field
CookieTracking on|off off svdhE
Enables tracking cookie
CoreDumpDirectory directorysM
Apache使用的内核转储目录
CustomLog file|pipe format|nickname [env=[!]environment-variable]svB
设定日志的文件名和格式
Dav On|Off|provider-name Off dE
Enable WebDAV HTTP methods
DavDepthInfinity on|off off svdE
Allow PROPFIND, Depth: Infinity requests
DavGenericLockDB file-pathsvdE
Location of the DAV lock database
DavLockDB file-pathsvE
Location of the DAV lock database
DavMinTimeout seconds 0 svdE
Minimum amount of time the server holds a lock on a DAV resource
DBDExptime time-in-secondssvE
Keepalive time for idle connections
DBDKeep numbersvE
Maximum sustainednumber of connections
DBDMax numbersvE
Maximum number of connections
DBDMin numbersvE
Minimum number of connections
DBDParams param1=value1[,param2=value2]svE
Parameters for database connection
DBDPersist 0|1svE
Whether to use persistent connections
DBDPrepareSQL "SQL statement" labelsvE
Define an SQL prepared statement
DBDriver namesvE
Specify an SQL driver
DefaultIcon url-pathsvdhB
Icon to display for files when no specific icon is configured
DefaultLanguage MIME-langsvdhB
为所有文件设定特定的默认语言
DefaultType MIME-type text/plain svdhC
在服务器无法由其他方法确定内容类型时,发送的默认MIME内容类型
DeflateBufferSize value 8096 svE
用于zlib一次压缩的片断大小(字节)
DeflateCompressionLevel valuesvE
将输出内容压缩的程度
DeflateFilterNote [type] notenamesvE
在日志中放置压缩率标记
DeflateMemLevel value 9 svE
zlib在压缩时最多可以使用多少内存
DeflateWindowSize value 15 svE
Zlib压缩窗口(compression window)的大小
Deny from all|host|env=env-variable [host|env=env-variable] ...dhB
控制哪些主机被禁止访问服务器
<Directory directory-path> ... </Directory>svC
封装一组指令,使之仅对文件空间中的某个目录及其子目录生效
DirectoryIndex local-url [local-url] ... index.html svdhB
当客户端请求一个目录时寻找的资源列表
<DirectoryMatch regex> ... </DirectoryMatch>svC
封装一些指令并作用于文件系统中匹配正则表达式的所有目录及其子目录
DirectorySlash On|Off On svdhB
打开或关闭目录结尾斜线(/)自动补全功能
DocumentRoot directory-path /usr/local/apache/h +svC
组成网络上可见的主文档树的根目录
DumpIOInput On|Off Off sE
将所有输入的内容记录到错误日志中
DumpIOOutput On|Off Off sE
将所有输出的内容记录到错误日志中
EnableExceptionHook On|Off Off sM
在子进程崩溃以后启用一个钩子来运行异常处理程序
EnableMMAP On|Off On svdhC
在递送中使用内存映射(memory-mapping)来读取文件
EnableSendfile On|Off On svdhC
使用操作系统内核的sendfile支持来将文件发送到客户端
ErrorDocument error-code documentsvdhC
当遇到错误的时候服务器将给客户端什么样的应答
ErrorLog file-path|syslog[:facility] logs/error_log (Uni +svC
存放错误日志的位置
ExamplesvdhX
Demonstration directive to illustrate the Apache module API
ExpiresActive On|OffsvdhE
启用或禁用产生"Expires:"和"Cache-Control:"头的功能
ExpiresByType MIME-type <code>secondssvdhE
由MIME类型配置的Expires头的值
ExpiresDefault <code>secondssvdhE
默认有效期的计算方法
ExtendedStatus On|Off Off sB
Keep track of extended status information for each request
ExtFilterDefine filtername parameterssE
Define an external filter
ExtFilterOptions option [option] ... DebugLevel=0 NoLogS +dE
Configure mod_ext_filter options
FileETag component ... INode MTime Size svdhC
用以创建ETag应答头的文件的属性
<Files filename> ... </Files>svdhC
包含作用于匹配指定文件名的指令
<FilesMatch regex> ... </FilesMatch>svdhC
包含作用于与正则表达式匹配的文件名的指令
FilterChain [+=-@!]filter-name ...svdhB
Configure the filter chain
FilterDeclare filter-name [type]svdhB
Declare a smart filter
FilterProtocol filter-name [provider-name] proto-flagssvdhB
Deal with correct HTTP protocol handling
FilterProvider filter-name provider-name [req|resp|env]=dispatch matchsvdhB
Register a content filter
FilterTrace filter-name levelsvdB
Get debug/diagnostic information from mod_filter
ForceLanguagePriority None|Prefer|Fallback [Prefer|Fallback] Prefer svdhB
指定无法匹配单个文档的情况下所采取的动作
ForceType MIME-type|NonedhC
强制所有匹配的文件被作为指定的MIME类型进行伺服
ForensicLog filename|pipesvE
Sets filename of the forensic log
GracefulShutDownTimeout secondssM
指定优雅停止服务器的超时秒数
Group unix-group #-1 sM
对请求提供服务的Apache子进程运行时的用户组
Header [condition] set|append|add|unset|echo header [value] [early|env=[!]variable]svdhE
配置HTTP应答头
HeaderName filenamesvdhB
Name of the file that will be inserted at the top of the index listing
HostnameLookups On|Off|Double Off svdC
启用对客户端IP的DNS查找
IdentityCheck On|Off Off svdE
启用对远端用户的RFC1413身份鉴定的日志
IdentityCheckTimeout seconds 30 svdE
Determines the timeout duration for ident requests
<IfDefine [!]parameter-name> ... </IfDefine>svdhC
封装一组只有在启动时当测试结果为真时才生效的指令
<IfModule [!]module-file|module-identifier> ... </IfModule>svdhC
封装指令并根据指定的模块是否启用为条件而决定是否进行处理
<IfVersion [[!]operator] version> ... </IfVersion>svdhE
contains version dependent configuration
ImapBase map|referer|URL http://servername/ svdhB
Default base for imagemap files
ImapDefault error|nocontent|map|referer|URL nocontent svdhB
Default action when an imagemap is called with coordinates that are not explicitly mapped
ImapMenu none|formatted|semiformatted|unformattedsvdhB
Action if no coordinates are given when calling an imagemap
Include file-path|directory-pathsvdC
在服务器配置文件中包含其它配置文件
IndexIgnore file [file] ...svdhB
Adds to the list of files to hide when listing a directory
IndexOptions [+|-]option [[+|-]option] ...svdhB
Various configuration settings for directory indexing
IndexOrderDefault Ascending|Descending Name|Date|Size|Description Ascending Name svdhB
Sets the default ordering of the directory index
IndexStyleSheet url-pathsvdhB
Adds a CSS stylesheet to the directory index
ISAPIAppendLogToErrors on|off off svdhB
把ISAPI扩展的HSE_APPEND_LOG_PARAMETER请求记录在错误日志中
ISAPIAppendLogToQuery on|off on svdhB
把ISAPI扩展的HSE_APPEND_LOG_PARAMETER请求记录在查询域中
ISAPICacheFile file-path [file-path] ...svB
启动时载入的ISAPI动态连接库
ISAPIFakeAsync on|off off svdhB
为ISAPI回调模拟异步支持
ISAPILogNotSupported on|off off svdhB
记录ISAPI不支持的功能调用
ISAPIReadAheadBuffer size 49152 svdhB
传送到ISAPI扩展的预读缓冲区大小
KeepAlive On|Off On svC
启用HTTP持久链接
KeepAliveTimeout seconds 5 svC
持久链接中服务器在两次请求之间等待的秒数
LanguagePriority MIME-lang [MIME-lang] ...svdhB
在客户端没有指示语言偏好的情况下,语言变体的优先级列表
LDAPCacheEntries number 1024 sE
主LDAP缓冲的最大条目数
LDAPCacheTTL seconds 600 sE
search/bind缓冲项目有效时限
LDAPConnectionTimeout secondssE
指定套接字连接超时秒数
LDAPOpCacheEntries number 1024 sE
LDAP compare缓冲区的大小
LDAPOpCacheTTL seconds 600 sE
操作缓冲有效时限
LDAPSharedCacheFile directory-path/filenamesE
设置共享内存缓冲区文件
LDAPSharedCacheSize bytes 102400 sE
共享内存缓冲区的字节大小
LDAPTrustedClientCert type directory-path/filename/nickname [password]svdhE
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]sE
Sets the file or database containing global trusted Certificate Authority or global client certificates
LDAPTrustedMode typesvdhE
Specifies the SSL/TLS mode to be used when connecting to an LDAP server.
LDAPVerifyServerCert On|Off On sE
Force server certificate verification
<Limit method [method] ... > ... </Limit>svdhC
仅对指定的HTTP方法进行访问控制
<LimitExcept method [method] ... > ... </LimitExcept>svdhC
对除了指定方法以外的所有HTTP方法进行访问控制
LimitInternalRecursion number [number] 10 svC
指定内部重定向和嵌套子请求的最大数量
LimitRequestBody bytes 0 svdhC
限制客户端发送的HTTP请求体的最大字节长度
LimitRequestFields number 100 sC
限制接受客户端请求中HTTP请求头域的数量
LimitRequestFieldsize bytessC
限制客户端发送的请求头的字节数
LimitRequestLine bytes 8190 sC
限制接受客户端发送的HTTP请求行的字节数
LimitXMLRequestBody bytes 1000000 svdhC
限制基于XML的请求体的大小
Listen [IP-address:]portnumber [protocol]sM
服务器监听的IP地址和端口
ListenBacklog backlogsM
半链接(pending connection)队列的最大长度
LoadFile filename [filename] ...sE
加载已命名的目标文件或库
LoadModule module filenamesE
加载目标文件或库,并将其添加到活动模块列表
<Location URL-path|URL> ... </Location>svC
将封装的指令作用于匹配的URL
<LocationMatch regex> ... </LocationMatch>svC
将封装的指令作用于正则表达式匹配的URL
LockFile filename logs/accept.lock sM
接受串行锁文件的位置
LogFormat format|nickname [nickname] "%h %l %u %t \"%r\" +svB
定义访问日志的记录格式
LogLevel level warn svC
控制错误日志的详细程度
MaxClients numbersM
允许同时伺服的最大接入请求数量
MaxKeepAliveRequests number 100 svC
一个持久链接中允许的最大请求数量
MaxMemFree KBytes 0 sM
主内存分配程序在未调用free()的情况下允许持有的最大自由内存数量(KB)
MaxRequestsPerChild number 10000 sM
每个子进程在其生存期内允许伺服的最大请求数量
MaxRequestsPerThread number 0 sM
Limit on the number of requests that an individual thread will handle during its life
MaxSpareServers number 10 sM
空闲子进程的最大数量
MaxSpareThreads numbersM
最大空闲线程数
MaxThreads number 2048 sM
Set the maximum number of worker threads
MCacheMaxObjectCount value 1009 sE
最大缓存对象数
MCacheMaxObjectSize bytes 10000 sE
缓存允许的最大文档大小(字节)
MCacheMaxStreamingBuffer size_in_bytes the smaller of 1000 +sE
内存中允许缓冲的最大流式响应字节长度
MCacheMinObjectSize bytes 0 sE
允许缓存的最小文档大小(字节)
MCacheRemovalAlgorithm LRU|GDSF GDSF sE
定义在需要时哪个文档被移出缓存的算法
MCacheSize KBytes 100 sE
缓存允许使用的最大内存量,以KB为单位
MetaDir directory .web svdhE
Name of the directory to find CERN-style meta information files
MetaFiles on|off off svdhE
Activates CERN meta-file processing
MetaSuffix suffix .meta svdhE
File name suffix for the file containg CERN-style meta information
MimeMagicFile file-pathsvE
使用特定的Magic文件激活根据文件内容确定文件MIME类型的功能
MinSpareServers number 5 sM
空闲子进程的最小数量
MinSpareThreads numbersM
最小空闲线程数
MMapFile file-path [file-path] ...sX
Map a list of files into memory at startup time
ModMimeUsePathInfo On|Off Off dB
将path_info当成是文件名的一个组成部分
MultiviewsMatch Any|NegotiatedOnly|Filters|Handlers [Handlers|Filters] NegotiatedOnly svdhB
在使用MultiViews查询所匹配的文件时要包含的文件类型
NameVirtualHost addr[:port]sC
为一个基于域名的虚拟主机指定一个IP地址(和端口)
NoProxy host [host] ...svE
直接进行连接的主机/域/网络
NWSSLTrustedCerts filename [filename] ...sB
附加的客户端证书列表
NWSSLUpgradeable [IP-address:]portnumbersB
允许在请求中将一个连接升级为SSL连接
Options [+|-]option [[+|-]option] ... All svdhC
配置在特定目录中可以使用哪些特性
Order ordering Deny,Allow dhB
控制默认的访问状态与Allow和Deny指令生效的顺序
PassEnv env-variable [env-variable] ...svdhB
传送shell中的环境变量
PidFile filename logs/httpd.pid sM
服务器用于记录父进程(监控进程)PID的文件
ProtocolEcho On|OffsvX
Turn the echo server on or off
<Proxy wildcard-url> ...</Proxy>svE
应用于所代理资源的容器
ProxyBadHeader IsError|Ignore|StartBody IsError svE
确定如何处理不合法的应答头
ProxyBlock *|word|host|domain [word|host|domain] ...svE
设置被代理屏蔽的语句、主机、域
ProxyDomain DomainsvE
代理请求的默认域名
ProxyErrorOverride On|Off Off svE
覆盖代理内容的错误页
ProxyIOBufferSize bytes 8192 svE
内部缓冲区大小
<ProxyMatch regex> ...</ProxyMatch>svE
应用于匹配正则表达式的代理资源的容器
ProxyMaxForwards number 10 svE
转发请求的最大代理数目
ProxyPass [path] !|url [key=value key=value ...]]svdE
将一个远端服务器映射到本地服务器的URL空间中
ProxyPassReverse [path] urlsvdE
调整由反向代理服务器发送的HTTP应答头中的URL
ProxyPassReverseCookieDomain internal-domain public-domainsvdE
Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server
ProxyPassReverseCookiePath internal-path public-pathsvdE
Adjusts the Path string in Set-Cookie headers from a reverse- proxied server
ProxyPreserveHost On|Off Off svE
使用进入的HTTP请求头来发送代理请求
ProxyReceiveBufferSize bytes 0 svE
代理HTTP和FTP连接的接收缓冲区大小(字节)
ProxyRemote match remote-serversvE
用于处理某些特定请求的远端代理
ProxyRemoteMatch regex remote-serversvE
处理匹配正则表达式的请求的远端代理
ProxyRequests On|Off Off svE
启用正向(标准)代理请求
ProxyTimeout seconds 300 svE
代理请求的网络超时
ProxyVia On|Off|Full|Block Off svE
控制代理对Via应答头的使用
ReadmeName filenamesvdhB
Name of the file that will be inserted at the end of the index listing
ReceiveBufferSize bytes 0 sM
TCP接收缓冲区大小(字节)
Redirect [status] URL-path URLsvdhB
发送一个外部重定向使客户端重定向到一个不同的URL
RedirectMatch [status] regex URLsvdhB
基于正则表达式匹配对当前的URL发送一个外部重定向
RedirectPermanent URL-path URLsvdhB
发送一个外部永久重定向使客户端重定向到一个不同的URL
RedirectTemp URL-path URLsvdhB
发送一个外部临时重定向使客户端重定向到一个不同的URL
RemoveCharset extension [extension] ...vdhB
删除任何给定的扩展名与内容字符集之间的关联
RemoveEncoding extension [extension] ...vdhB
删除任何给定的扩展名与内容编码方式之间的关联
RemoveHandler extension [extension] ...vdhB
删除任何指定扩展名与处理器之间的关联
RemoveInputFilter extension [extension] ...vdhB
删除指定扩展名与输入过滤器之间的关联
RemoveLanguage extension [extension] ...vdhB
删除指定的扩展名与内容语言之间的关联
RemoveOutputFilter extension [extension] ...vdhB
删除指定扩展名与输出过滤器之间的关联
RemoveType extension [extension] ...vdhB
删除指定扩展名与内容类型之间的关联
RequestHeader set|append|add|unset header [value] [early|env=[!]variable]svdhE
配置HTTP请求头
Require entity-name [entity-name] ...dhC
指定哪些认证用户允许访问该资源
RewriteBase URL-pathdhE
Sets the base URL for per-directory rewrites
RewriteCond TestString CondPatternsvdhE
Defines a condition under which rewriting will take place
RewriteEngine on|off off svdhE
Enables or disables runtime rewriting engine
RewriteLock file-pathsE
Sets the name of the lock file used for RewriteMap synchronization
RewriteLog file-pathsvE
Sets the name of the file used for logging rewrite engine processing
RewriteLogLevel Level 0 svE
Sets the verbosity of the log file used by the rewrite engine
RewriteMap MapName MapType:MapSource svE
Defines a mapping function for key-lookup
RewriteOptions OptionssvdhE
Sets some special options for the rewrite engine
RewriteRule Pattern SubstitutionsvdhE
Defines rules for the rewriting engine
RLimitCPU seconds|max [seconds|max]svdhC
限制Apache子进程派生的进程占用CPU的最大秒数
RLimitMEM bytes|max [bytes|max]svdhC
限制由Apache子进程派生的进程占用的最大内存字节数
RLimitNPROC number|max [number|max]svdhC
限制由Apache子进程派生的进程所派生的进程数目
Satisfy Any|All All dhC
主机级别的访问控制和用户认证之间的相互关系
ScoreBoardFile file-path logs/apache_status sM
存储子进程协调数据(coordination data)的文件
Script method cgi-scriptsvdB
对特定的请求方法激活一个CGI脚本
ScriptAlias URL-path file-path|directory-pathsvB
映射一个URL到文件系统并视之为CGI脚本
ScriptAliasMatch regex file-path|directory-pathsvB
使用正则表达式映射一个URL到文件系统并视之为CGI脚本
ScriptInterpreterSource Registry|Registry-Strict|Script Script svdhC
定位CGI脚本解释器
ScriptLog file-pathsvB
CGI脚本错误日志文件的位置
ScriptLogBuffer bytes 1024 svB
记入日志文件的PUT或POST请求头的最大数量
ScriptLogLength bytes 10385760 svB
日志文件的大小限制(字节)
ScriptSock file-path logs/cgisock svB
用来与CGI守护进程通信的套接字文件名前缀
SecureListen [IP-address:]portnumber Certificate-Name [MUTUAL]sB
在指定端口启用SSL加密
SendBufferSize bytes 0 sM
TCP发送缓冲区大小(字节)
ServerAdmin email-address|URLsvC
服务器返回给客户端的错误信息中包含的管理员邮件地址
ServerAlias hostname [hostname] ...vC
匹配一个基于域名的虚拟主机的别名
ServerLimit numbersM
服务器允许配置的进程数上限
ServerName fully-qualified-domain-name[:port]svC
服务器用于辨识自己的主机名和端口号
ServerPath URL-pathvC
为兼容性不好的浏览器访问基于域名的虚拟主机保留的URL路径名
ServerRoot directory-path /usr/local/apache sC
安装服务器的基础目录
ServerSignature On|Off|EMail Off svdhC
配置服务器生成页面的页脚
ServerTokens Major|Minor|Min[imal]|Prod[uctOnly]|OS|Full Full sC
配置"Server:"应答头
SetEnv env-variable valuesvdhB
设置环境变量
SetEnvIf attribute regex [!]env-variable[=value] [[!]env-variable[=value]] ...svdhB
根据客户端请求属性设置环境变量
SetEnvIfNoCase attribute regex [!]env-variable[=value] [[!]env-variable[=value]] ...svdhB
根据大小写无关的客户端请求属性设置环境变量
SetHandler handler-name|NonesvdhC
强制所有匹配的文件被一个指定的处理器处理
SetInputFilter filter[;filter...]svdhC
设置处理客户端请求和POST输入时使用的过滤器
SetOutputFilter filter[;filter...]svdhC
设置用于处理服务器输出应答的过滤器
SSIEndTag tag "-->" svB
String that ends an include element
SSIErrorMsg message "[an error occurred +svdhB
Error message displayed when there is an SSI error
SSIStartTag tag "<!--#" svB
String that starts an include element
SSITimeFormat formatstring "%A, %d-%b-%Y %H:%M +svdhB
Configures the format in which date strings are displayed
SSIUndefinedEcho string "(none)" svdhB
String displayed when an unset variable is echoed
SSLCACertificateFile file-pathsvE
File of concatenated PEM-encoded CA Certificates for Client Auth
SSLCACertificatePath directory-pathsvE
Directory of PEM-encoded CA Certificates for Client Auth
SSLCADNRequestFile file-pathsvE
File of concatenated PEM-encoded CA Certificates for defining acceptable CA names
SSLCADNRequestPath directory-pathsvE
Directory of PEM-encoded CA Certificates for defining acceptable CA names
SSLCARevocationFile file-pathsvE
File of concatenated PEM-encoded CA CRLs for Client Auth
SSLCARevocationPath directory-pathsvE
Directory of PEM-encoded CA CRLs for Client Auth
SSLCertificateChainFile file-pathsvE
File of PEM-encoded Server CA Certificates
SSLCertificateFile file-pathsvE
Server PEM-encoded X.509 Certificate file
SSLCertificateKeyFile file-pathsvE
Server PEM-encoded Private Key file
SSLCipherSuite cipher-spec ALL:!ADH:RC4+RSA:+H +svdhE
Cipher Suite available for negotiation in SSL handshake