Apache最新官方配置文件中文版说明

2020-01-30 12:21:00王旭

# # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. #控制UserDir目录,以下是一个例子,这个目录是只读的 # You must correct the path for the root to match your system's configured # user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website" # or whichever, as appropriate. #你必须更正root目录,与系统设置相配,如用户目录是C:/WinNT/profiles/*/My Documents/My Website或者其它合适的 #<Directory "C:/Documents and Settings/*/My Documents/My Website"> # AllowOverride FileInfo AuthConfig Limit # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec # <Limit GET POST OPTIONS PROPFIND> # Order allow,deny # Allow from all # </Limit> # <LimitExcept GET POST OPTIONS PROPFIND> # Order deny,allow # Deny from all # </LimitExcept> #</Directory>
# # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. #DirectoryIndex: Apache服务器将要以一个目录的形式响应服务 # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. #index.html变量文件(一种映射)将直接传送内容。MultiViews选项可以用于同样的目的,但是要慢得多 DirectoryIndex index.html index.html.var
# # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. #AccessFileName: 用来查找各个目录下额外的配置指令的配置文件名,同时参考AllowOverride(允许重载)指令 #Acce AccessFileName .htaccess
# # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. #下面两行,阻址Web客户端访问 .htaccess和htpasswd(访问设定和密码)的文件 # <Files ~ "^.ht"> Order allow,deny Deny from all </Files>
# # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig,描述在何处找到mime型别 TypesConfig conf/mime.types
# # DefaultType is the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. 如果服务器不能确定文档的型别,将使用默认的MIME型别,例如根据扩展名 # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. #如果你的服务器主要包括text/html文档,”text/plain”就是一个好的取值。如果你的大多数内容是binary(二进制)的,如应用程序或图片,你可能希望使用application/octet-stream,使得浏览器试图显示二进制数据,尽管它们是文本 DefaultType text/plain