[英]WAMP You don't have permission to access / on this server
您無權訪問此服務器上的/。 我為項目創建了一個新的虛擬主機。 現在,我無法訪問之前可以訪問的所有本地存儲項目。 但是虛擬主機上的項目可以工作。
HTTP-vhosts.conf:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@my_poject.com
DocumentRoot "c:\wampF\www\my_project\web"
ServerName my_poject.com
ErrorLog "logs/my_poject.com-error.log"
CustomLog "logs/my_poject.com-access.log" common
</VirtualHost>
主機:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 my_poject.com
我認為您正在使用Apache 2.4。
采用
Require all granted
而不是全部
Order allow,deny Allow from all
從您的所有.conf文件中,例如eg-:http.conf,httpd-vhosts.conf,httpd-autoindex.conf。
然后重新啟動系統。
Regds
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.