【发布时间】:2016-09-16 13:49:22
【问题描述】:
您好,我一直在尝试设置一个 wamp 服务器,以便人们可以访问它进行测试 我的电脑上一切正常,我相信我已经正确设置了一切,但没有人可以连接到该站点,因为它无法访问
我在路由器和防火墙上打开了 80 端口
我的hosts文件如下
127.0.0.1 localhost
::1 localhost
127.0.0.1 bandicam.com
127.0.0.1 ssl.bandisoft.com
127.0.0.1 btcGame.local
::1 btcGame.local
我的httpd-vhosts.conf如下
#
# Virtual Hosts
#
<VirtualHost *:80>
DocumentRoot "g:/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory "G:/wamp/www">
AllowOverride All
Options Indexes FollowSymLinks
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName btcGame.local
ServerAlias www.btcGame.local
DocumentRoot "c:/wamp64/www/btcgame"
ErrorLog "logs/btcGame-error.log"
CustomLog "logs/btcGame-access.log" common
<Directory "/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
为了让我的网站上线,我还需要更改什么其他的东西吗?
【问题讨论】:
-
不是跟require属性有关吗?
-
我还需要补充吗?还是我的错?
-
我说得对吗?应该让人们btcgame.local 进行连接?还是我在这里很傻?
-
你的 apache 版本是什么?另外,您是否在本地 dns 服务器中定义了别名?或在您的主机文件中?
-
2.4.18 我正在跑步。如何定义别名?