Wamp Server 3.0.6 作为本地主机正常工作,但不能在网络上工作

Wamp Server 3.0.6 working fine as localhost, but not on network

我刚刚在服务器上安装了 WAMP 服务器,当登录到服务器时,一切正常,网站显示如我所料,但是如果我尝试从远程计算机访问该网站,我会收到一条消息

'Forbidden - you don't have permission to access / on this server'

我已经检查过服务器在线并且所有服务都运行...它们是

很可能是虚拟主机上的 apache 权限。确保它不限于本地主机。如果可能 post 你的 apache 日志。错误日志会告诉你原因。

在虚拟主机的 目录 中,将 Require local 更改为 Require all granted

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot your_path
    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

更改为:

    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>