在windows2008伺服器上安裝wampserver3.0.4整合環境,預設卻是無法遠端訪問,如果要遠端存取需要修改apache的設定檔httpd.conf,修改如下:
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGIViewsViewsViews Includes FollowSymLinks SymLinksifOwnerMatch ExecCGIViewsViewsViewsgoo; -- "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
#
# 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
說明:
-Indexs +FollowSymLinks 把'+Indexs'修改為'-Indexs'代表不允許存取文件目錄;把'+Indexs'修改為'-Indexs'代表不允許存取文件目錄;
🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜 🎜🎜🎜Require all granted 此行是後來加上的,加上後就可以遠端存取。 🎜🎜🎜🎜🎜🎜 🎜🎜