WAMPServer 3.1.4 - 连接同一子网上的计算机的问题

问题描述 投票:0回答:1

我有一个全新安装的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>
wampserver
1个回答
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>
© www.soinside.com 2019 - 2024. All rights reserved.