用于外部LAN访问的Apache配置

时间:2016-10-13 21:18:55

标签: linux apache

我是网络服务器领域的新手。我有一台服务器运行一个非常简单的apache html文件。我可以从网络内的其他计算机访问该文件。但是,当我关闭手机上的wifi并尝试使用蜂窝网络访问网站时,我得到“页面无法正常工作:err_empty_response”。

apache错误文件(error_log)的输出是

[Thu Oct 13 16:05:01.425974 2016] [mpm_prefork:notice] [pid 25353] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Oct 13 16:05:02.479463 2016] [core:notice] [pid 27026] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Oct 13 16:05:02.480141 2016] [suexec:notice] [pid 27026] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Oct 13 16:05:02.487556 2016] [auth_digest:notice] [pid 27026] AH01757: generating secret for digest authentication ...
[Thu Oct 13 16:05:02.488172 2016] [lbmethod_heartbeat:notice] [pid 27026] AH02282: No slotmem from mod_heartmonitor
[Thu Oct 13 16:05:02.490379 2016] [mpm_prefork:notice] [pid 27026] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) configured -- resuming normal operations
[Thu Oct 13 16:05:02.490396 2016] [core:notice] [pid 27026] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

修改

我已注册域名,并且我有一个名称服务器正确解析域名。即使从我的手机,我可以对域名进行DNS查找,并提供正确的IP地址。因此防火墙和端口转发至少适用于名称服务器。因为我以同样的方式设置它会导致apache服务器的防火墙或端口转发出现问题,这对我来说更加困惑

修改 名称服务器位于本地服务器上,因此必须打开防火墙才能让外部源访问它

修改 我注册域名的公司将“外部DNS系统”指向我的名称服务器以进行名称解析

1 个答案:

答案 0 :(得分:0)

傻,傻,傻!我的ISP阻止了端口80,这就是为什么我无法访问局域网外的网络服务器。