Apache 2.4 - 禁止 (WAMP)

Apache 2.4 - Forbidden (WAMP)

无法让 Apache 2.4 正常工作。

Localhost 效果很好。我可以看到我的网站没有问题。但是,如果我有另一台计算机尝试与服务器通信,我会收到以下错误:

禁止 您无权访问此服务器上的 /test。

我做了一些研究并在 http.conf 文件上尝试了很多选项。

我知道这不安全,但我正在努力让它发挥作用,一旦我可以建立某种连接,我就可以提高安全性。

我的配置文件目录如下所示:

<Directory />
    Require all granted
</Directory>

DocumentRoot "c:/wamp64/www"
<Directory "c:/wamp64/www/">
    Require all granted
</Directory>

非常感谢任何帮助。提前致谢!

终于成功了,这就是我的配置,希望对你有用。

<Directory />
    AllowOverride none
    Require all granted
</Directory>

DocumentRoot "c:/wamp64/www"
<Directory "c:/wamp64/www/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

<Directory "c:/wamp64/www/test">
    Require all granted
</Directory>

您还需要添加该目录。