APACHE 配置文件中文版 httpd.conf FOR Apache 2.2.13

2019-10-15 20:39:50王冬梅

# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# 本节中指令的设置值,将被主服务所使用,主服务响应那些没有被<VirtualHost>所处理的请求,
# 这些值也为<VirtualHost>容器提供了默认值,你可以在后面的文件中定义
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
# 所有这些指令将出现在<VirtualHost>容器中,这些设定值将在定义virtual host时被覆写。


#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
# ServerAdmin: 你的地址,当系统故障时,可以给你发email。
# 此地址出现在那些由服务器生成的页面上,如出错文档。例如:admin@your-domain.com
#
ServerAdmin indian@163.com

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
# ServerNaem 定义了server名称和端口号,用以标明自己的身份。
# 通常可以自动定义,建议明确地指定它,避免起动时出错
# If your host doesn't have a registered DNS name, enter its IP address here.
# 如果你没有注册DNS名字,请在这里输入IP地址。
ServerName www.kysf.net:8080

#
# 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: 你的文档的根目录。默认情况下,所有的请求都从这里开始,
# 但是可以使用符号链接和别名来指向到其他的位置。
#
DocumentRoot "E:/usr/Apache2.2/htdocs"


#
# 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).
# 每个可供Apache访问的目录,可以配置成允许和(或)禁止哪些服务和特性(包括其子目录)
#
# First, we configure the "default" to be a very restrictive set of
# features.
# 首先,我们定义一个默认的非常严格的配置
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</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.