2013-07-09 112 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版本希望如此