2013-07-09 116 views
0

我已經cofigured的httpd-vhosts.conf作爲虛擬主機沒有被配置

<VirtualHost *:80> 
    ServerAdmin [email protected] 
    DocumentRoot "C:\Users\Naveed-Laptop\repos\ustainable" 
    ServerName ustainable 
    ErrorLog "logs/ustainable-error.log" 
    CustomLog "logs/ustainable-acess.log" common 
</VirtualHost> 

配置了我的hosts文件 127.0.0.1 ustainable

但是當我去谷歌瀏覽器的搜索和搜索 [ HTTP:// ustainable]

它說

Oops! Google Chrome could not connect to ustainable 
    Suggestions: 
    Search on Google: 
+0

請提供一些更多的描述,以獲得最大的幫助。 – Shivaay

回答

0

它由於熱點sheild和ErrorLog,CustomLog而造成問題;我使用的XAMPP 1.8

<VirtualHost 127.0.0.1:80> 
DocumentRoot "C:\xampp\htdocs" 
ServerName xampp.local 
ServerAlias www.xampp.local 
</VirtualHost> 
<VirtualHost 127.0.0.1:80> 
DocumentRoot "C:\xampp\htdocs\domain\html" 
ServerName domain.local.com 
ServerAlias www.domain.local.com 

在你的httpd-vhosts.conf文件的末尾添加之後重新啓動XAMPP並添加以下行到您的主機位於C文件中提供:\ WINDOWS \ SYSTEM32 \ DRIVERS \等\主機

127.0.0.1 domain.local.com 
127.0.0.1  xampp.local 

它將爲XAMPP 1.8工作剩餘的XAMPP版本希望如此