【发布时间】:2015-01-25 19:12:50
【问题描述】:
我正在按照本教程设置带有 wamp 服务器的虚拟主机 http://www.kristengrote.com/blog/articles/how-to-set-up-virtual-hosts-using-wamp
主机文件
127.0.0.1 localhost
127.0.0.1 dev.gamenomad.com
httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "C:\wamp\www\dev.gamenomad.com\public"
ServerName dev.gamenomad.com
ServerAlias dev.gamenomad.com
ErrorLog "logs/dev.gamenomad.com-error.log"
CustomLog "logs/dev.gamenomad.com-access.log" common
</VirtualHost>
<Directory C:\wamp\www>
Order Deny,Allow
Allow from all
</Directory>
httpd.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
我无法访问 dev.gamenomad.com 。我收到了这个错误
i18n-values: Missing value for "primaryParagraph"
GET http://dev.gamenomad.com/ net::ERR_CONNECTION_REFUSED http://dev.gamenomad.com/:1
fyi,我的 apache 服务器侦听端口 8080 而不是默认的 80。它会影响我的虚拟主机吗?
【问题讨论】:
-
fyi, my apache server listen to port 8080 instead of the default 80. Does it affect my virtual host?当然可以 -
该教程缺少一些东西,try reading this 它是从不同的角度进行的,但它确实告诉您如何创建虚拟主机
标签: apache wamp virtualhost wampserver