首頁  >  文章  >  php教程  >  解決wampserver3.0.4遠端不能存取問題

解決wampserver3.0.4遠端不能存取問題

WBOY
WBOY原創
2016-08-08 08:49:521236瀏覽

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

# 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



說明:

Options 

-Indexs  +FollowSymLinks  把'+Indexs'修改為'-Indexs'代表不允許存取文件目錄;把'+Indexs'修改為'-Indexs'代表不允許存取文件目錄;

🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜🎜 🎜🎜🎜Require all granted  此行是後來加上的,加上後就可以遠端存取。 🎜🎜🎜🎜🎜🎜 🎜🎜
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn