1. 程式人生 > >wampserver 允許外網訪問配置

wampserver 允許外網訪問配置

用編輯器開啟http.conf

大概244行:

改為

<Directory />
AllowOverride none
Require all granted
</Directory>

大概288行:

改為

# onlineoffline tag - don't remove
Require all granted

大概387行:

改為

<Directory "${INSTALL_DIR}/cgi-bin">
# AllowOverride None
Options None
Require all granted
</Directory>

2.開啟httpd-vhosts.conf 將Directory裡面內容更換為以下內容

<Directory "c:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require all granted
</Directory>