嗨,我一直在尝试设置一个wamp服务器,以便人们可以访问它,以便在我的pc上测试一切正常工作,我相信我已经正确设置了一切,但没有人可以连接到网站,因为它无法访问
我在我的路由器和防火墙上打开了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>为了让我的网站上线,我还需要做什么改变吗?
发布于 2016-09-16 22:13:21
其他试图访问您的计算机的人应该知道去哪里查找。
然后,您的服务器应该在其计算机的主机文件中被引用,除非IP应该是可解析的,例如
your.local.ip btcGame.localhttps://stackoverflow.com/questions/39533149
复制相似问题