# # 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 "C:/Program Files/Apache Group/Apache2/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 </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. # 这将改变你对DocumentRoot的设置 <Directory "C:/Program Files/Apache Group/Apache2/htdocs">
# # Possible values for the Options directive are "None", "All", # or any combination of: 可能的值为None,All或者任意组合 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # 索引包括FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. #注意MultiViews被显式地Options All, # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs-2.0/mod/core.html#options # for more information. #选项指令既复杂又重要,请参阅http://httpd.apache.org/docs-2.0/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 控制什么指令能够加入到.htaccess中,可以是All,None,或者组合关键字 AllowOverride None
# # Controls who can get stuff from this server. #控制谁可以可以访问此服务 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. Be especially careful to use # proper, forward slashes here. On Windows NT, "Personal/My Website" # is a more appropriate choice. # UserDir: 用户的home的名称,当接到到~user的请求时。 请小心正确使用”/”. 在WinNT上,”Personal/My Website”是更合适的选择 UserDir "My Documents/My Website"










