我全新安装了WAMPServer,除了能够从网络上的任何其他计算机连接到APACHE之外,其他所有程序都工作正常。我假设这仅与APACHE有关,防火墙和路由器将是其他潜在的瓶颈。
我是否只需要使用其他子网修改默认的VHost?或者我需要同时修改这两个子网?
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.3 <====== add here and below or only here
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName myhost
DocumentRoot c:/wamp/www/myhost
<Directory "c:/wamp/www/myhost">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.3 <========== or only here or both
</Directory>
</VirtualHost>
答案 0 :(得分:0)
问题通过以下修改Vhost文件并在防火墙上打开端口80 解决。
<VirtualHost *:80>
ServerName myhost
DocumentRoot c:/wamp/www/myhost
<Directory "c:/wamp/www/myhost">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local <========== adding to the vhost
Require ip 192.168.3 <========== adding to the vhost
</Directory>
</VirtualHost>