wamp 服务器上线供任何人访问
wamp server put online for anyone to access
您好,我一直在尝试设置一个 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>
为了使我的网站上线,我还需要更改任何其他内容吗?
其他试图访问您计算机的人应该知道去哪里找。
你的服务器应该在他们机器的主机文件中被引用,除了 IP 应该是可解析的,例如
your.local.ip btcGame.local
您好,我一直在尝试设置一个 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>
为了使我的网站上线,我还需要更改任何其他内容吗?
其他试图访问您计算机的人应该知道去哪里找。
你的服务器应该在他们机器的主机文件中被引用,除了 IP 应该是可解析的,例如
your.local.ip btcGame.local