【发布时间】:2014-08-04 07:27:14
【问题描述】:
我正在关注 RiggsFolly 的回答、this 问题和these 示例,到目前为止一切顺利,但是当我点击虚拟主机 FF 时说它找不到服务器。这怎么能解决? 我正在使用 Wampserver 2.5。
我在地址栏中得到这个:http://www.cakeprebuild.com/
httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /wamp/www/CakePreBuild
ServerName www.CakePreBuild.com
<Directory "c:/wamp/www/CakePreBuild">
AllowOverride All
Require local
</Directory>
</VirtualHost>
主机
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 localhost
127.0.0.1 CakePreBuild
::1 localhost
::1 CakePreBuild
【问题讨论】:
-
告诉我们您点击的链接试图将您带到哪里 - FF 中的地址栏说什么?
-
@SarahKemp 哪个链接?我正在通过 wampservermenu->My Virtual Hosts->www.CakePreBuild.com 访问虚拟主机
-
你在 hosts 文件中放了什么?
-
将您的 httpd-vhosts.conf 文件添加到您的问题中,以便我们对其进行审核。
-
@RiggsFolly 我更新了我的问题
标签: apache wampserver vhosts