我刚刚安装了wamp服务器,并尝试对其进行设置,以允许其他IP地址的用户查看我的网站。我已经在路由器中转发了该端口,并使用http://www.yougetsignal.com/tools/open-ports/进行了测试。在我设置的httpd.conf文件中
Listen 0.0.0.0:8080
Listen [::0]:8080
ServerName 192.168.1.69:8080
# onlineoffline tag - don't remove
Require all granted
Run Code Online (Sandbox Code Playgroud)
问题是,如果我使用localhost:8080或192.168.1.69:8080,则将显示wampserver主页,但是如果我将外部ip与端口8080一起使用,则会禁止使用403:您无权访问/打开该服务器。
在这个站点上,我发现了同样的问题,我的httpd.conf文件就像他一样,该人确实解决了该问题,但是没有告诉他他是如何做到的……有人可以在这里帮助我吗?谢谢。
编辑:这是完整的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 in here without understanding
# what …Run Code Online (Sandbox Code Playgroud)