【发布时间】:2014-05-14 13:06:45
【问题描述】:
我需要一些帮助来设置这个东西。
我遵循了有关在 WAMP 中设置虚拟主机的教程,其中包括以下步骤:
-
在文件夹
C:\wamp\bin\apache\apache2.2.6\conf中打开文件httpd.conf并取消注释以下语句的最后 #:# Virtual hosts #Include conf/extra/httpd-vhosts.conf"看起来像这样:
# Virtual hosts Include conf/extra/httpd-vhosts.conf -
打开文件夹
C:\wamp\bin\apache\apache2.2.6\conf\extra中的文件httpd-vhosts.conf,删除其中的所有内容并替换为以下代码:NameVirtualHost *:80 <VirtualHost *:80> ServerName www.jagerseow.servegame.com (WHICH IS A DOMAIN A REGISTERED IN NO-IP) ServerAlias jagerseow.servegame.com domain DocumentRoot C:/wamp/www/MP4Public ErrorLog "C:/wamp/www/MP4Public/logs/error.log" CustomLog "C:/wamp/www/MP4Public/logs/access.log" common </VirtualHost>" <VirtualHost *:80> ServerName localhost DocumentRoot C:/wamp/www ErrorLog "C:/wamp/www/logs/error.log" CustomLog "C:/wamp/www/logs/access.log" common </VirtualHost> -
使用记事本打开服务器计算机上
C:/Windows/System32/drivers/etc文件夹中的文件hosts;然后,删除并用这些代码替换默认代码:127.0.0.1 localhost 127.0.0.1 domain 重新启动 WAMP 并等待它变成绿色,它确实如此...
- 尝试通过在浏览器中键入域连接到我的服务器页面,我的网页正常显示。但是,当任何人(包括我自己)尝试通过输入地址 (http://www.jagerseow.servegame.com) 来打开它时,不会加载任何页面。
我正在运行 Windows Vista 32 位。谁能告诉我我做错了什么?
【问题讨论】: