apache限制htdocs被外界访问

http://www.linlonx.com/post/312

 

 

apache限制htdocs被外界访问

修改apache下配置文件httpd.conf即可,

修改方法如下:

<Directory “/xampp/htdocs”>
#
# 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 Includes ExecCGI ( 以前为 Options Indexes FollowSymLinks Includes ExecCGI ) 即在Index前面加+ 表示开放,加-表示关闭

#
# 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 All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

你可能感兴趣的:(apache,编程,Go,.htaccess)