2015-09-26 119 views
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 
+1

看看這篇文章將告訴你如何正確http://stackoverflow.com/questions/23665064/project-links-do-not-work-on-wamp-創建虛擬主機服務器/ 23990618#23990618 – RiggsFolly

回答

0

我想你使用Apache 2.4。

使用

Require all granted

而不是所有

Order allow,deny Allow from all

從所有conf文件 爲EG-:http.conf中,的httpd-vhosts.conf,httpd的,自動變址.conf那樣。

然後重新啓動您的系統。

Regds

相關問題