0
您沒有權限訪問/在此服務器上。 我爲我的項目創建了一個新的虛擬主機。現在我無法訪問我之前可以訪問的所有本地存儲的項目。但在虛擬主機項目工程。WAMP您沒有權限訪問/在此服務器上
HTTP-vhosts.conf:
<VirtualHost *:80>
ServerAdmin [email protected]
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 [email protected]_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
看看這篇文章將告訴你如何正確http://stackoverflow.com/questions/23665064/project-links-do-not-work-on-wamp-創建虛擬主機服務器/ 23990618#23990618 – RiggsFolly