允許區域網路通路
隻需要配置 \wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.conf
Or
左鍵點選wamp服務圖示-> Apache -> httpd-vhost.conf
打開配置檔案後會顯示大概這樣的内容
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
修改其中的 Require local
改為 Require all granted
重新開機WAMP所有服務
修改根目錄方法
- 左鍵點選wamp服務圖示-> Apache -> httpd-vhost.conf
- 找到其中的
修改"${INSTALL_DIR}/www/"為想更改的路徑"G:/2019/"DocumentRoot "${INSTALL_DIR}/www/" <Directory "${INSTALL_DIR}/www/">
- 左鍵點選wamp服務圖示-> Apache -> httpd.conf
- 找到其中的
修改"${INSTALL_DIR}/www/"為想更改的路徑"G:/2019/"DocumentRoot "${INSTALL_DIR}/www/" <Directory "${INSTALL_DIR}/www/">
重新開機WAMP所有服務