嘗試使虛擬主持並授予所有本地用戶的訪問權限。請務必給予訪問
file -------> httpd.conf
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
#onlineoffline tag - don't remove
Require local
Require ip 192.168.0
</Directory>
編輯的httpd-vhosts.conf像:
file ------> httpd-vhosts.conf
# Virtual Hosts
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName smarthome
DocumentRoot "c:/wamp64/www/smarthome"
<Directory "c:/wamp64/www/smarthome/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
試試這個http://stackoverflow.com/questions/8204902/wamp-403-forbidden-message- on-windows-7 –
chmod用於更改文件和文件夾的權限,如果權限不允許您讀取文件,則會給出403錯誤,請嘗試更改文件/文件夾的屬性權限 –
@Purushotamrawat這些配置設置爲與我在這裏一樣,仍然是相同的錯誤 –