在windows2008服務器上安裝wampserver3.0.4集成環境,默認卻是無法遠程訪問,如果要遠程訪問需要修改apache的配置文件httpd.conf,修改如下:
<Directory "D:/wamp64/www/">
#
# 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.4/mod/core.html#options
# for more information.
#
Options -Indexs +FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
Require all granted
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
</Directory>
說明:
Options -Indexs +FollowSymLinks 把'+Indexs'修改為'-Indexs'代表不允許訪問文件目錄;
Require all granted 此行是後來加上的,加上後就可以遠程訪問。