2016-09-08 80 views
0

我的虛擬主機總是使用Fedora 23和xampp 1.8.2-6重定向到/ xampp頁面。我的虛擬主機設置總是重定向到/ xampp使用Fedora 23和xampp Im 1.8.2-6

這裏是我的/ etc/hosts文件

127.0.0.1 localhost.localdomain localhost 
::1 localhost6.localdomain6 localhost6 
127.0.0.1 test.dev.ph 

雖然我/opt/lampp/etc/extra/httpd-vhosts.conf編輯我重新啓動主機和虛擬主機後

<VirtualHost *:80> 
ServerName test.dev.ph 
DocumentRoot /var/www/projects/test/www/ 
<Directory "/var/www/projects/test/www/"> 
    AllowOverride All 
    Options All 
    Order allow,deny 
    Allow from all 
    Required all granted 
</Directory> 
</VirtualHost> 

我的lampp通過「sudo sh lampp restart」並且運行良好。我也嘗試將我的文件放在/ opt/lampp/htdocs/projects /中,並且在vhost中更改所有內容,但我仍然有相同的錯誤。

如果我把這個網絡「http://test.dev.ph/projects/test/www/」這是正確的

感謝

回答

0

我發現這個問題,「包括等/額外/的httpd-vhosts.conf」應該取消註釋或添加/opt/lampp/etc/httpd.conf,然後重新啓動計算機