小编igo*_*253的帖子

Apache 不允许从网络上的其他设备访问

在我开始之前,我想让大家知道我已经阅读了几十篇关于这个主题的文章,不幸的是我找不到正确的答案,甚至有一半的帖子都没有回答。

就这一点而言,我正在尝试访问托管在本地计算机上的一些站点,我使用的是 WAMP 服务器,并且仅尝试从同一网络上的设备访问服务器。在阅读了一些文章后,我意识到没有任何设备能够通过我本地计算机上的防火墙,因此我创建了一个新规则并为特定站点 (HTTP) 打开了端口 80。现在所有试图访问服务器的设备都通过了防火墙,这不再是问题了。现在的问题是 APACHE 本身不允许访问,我只是卡在了带有以下消息的页面上

You don't have permission to access /whatever on this server.
Apache/2.4.17(Win64) PHP/5.6.16 Server at 192.168.0.111 Port 80
Run Code Online (Sandbox Code Playgroud)

这是我的httpd.conf文件,如果有人可以偷看我真的很感激

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions …
Run Code Online (Sandbox Code Playgroud)

php apache wamp

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

apache ×1

php ×1

wamp ×1