#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off
# UseCanonicalName:确定apache如何构建自引用URLs和SERVER_NAME、SERVER_PORT变量。# 当设为Off时,apache将使用客户端支持的Hostname和Port。当设为On时,apache将使用# ServerName指令值。#UseCanonicalName Off
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"
# DocumentRoot:提供文档的根目录。# 默认,所有请求都由该目录提供,但是可以用连接符和别名指向其他位置。# DocumentRoot “/var/www/html”
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# 每个apache存取的目录(包括子目录)都可配置为允许和禁止。# # 首先,我们配置严格特征集合的默认值。# <Directory /> Options FollowSymLinks AllowOverride None</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
# 注意,从此点开始,必须指定使能特殊特性的允许。所以,如果一些事情没有安装你的期望的运行,# 确保你已经指定并使能以下特性。
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
# 这里应当根据你设定的DocumentRoot值进行修改。<Directory “/var/www/html”>
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
# 指令选项值可以是“None”、“All”,或者下面的任何组合:# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews# # 注意,“MultiViews”必须被清楚地指定---“All”不会帮你指定。# # 指令选项复杂并且重要。详细信息请查阅http://httpd.apache.org/docs/2.2/mod/core.html#options。# Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
# AllowOverride 允许优先,用来控制哪些指令可以放到.htaccess文件中。# 可以是“All”、“None”,或者下面关键字的任何组合:# Options FileInfo AuthConfig Limit# AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
# 控制谁可能获得服务器阻塞 Order allow,deny Allow from all</Directory>
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid. This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.