0

我已将 httpd-vhosts.conf 配置为

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

配置了我的主机文件 127.0.0.1 可持续

但是当我去谷歌浏览器搜索并搜索 [http://ustainable]

它说

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

1 回答 1

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\etc\hosts

127.0.0.1    domain.local.com
127.0.0.1      xampp.local

对于剩余的 xampp 版本,它适用于 xampp 1.8 希望如此

于 2013-07-10T08:40:30.433 回答