linux - 用于外部 LAN 访问的 Apache 配置

标签 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 系统”指向我的名称服务器以进行名称解析

最佳答案

傻,傻,傻!我的 ISP 阻止了端口 80,这就是我无法访问 LAN 之外的 Web 服务器的原因。

关于linux - 用于外部 LAN 访问的 Apache 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40031176/

相关文章:

linux - 根据大小旋转文件

linux - 使用 ssh 命令行将存储库中的所有文件从一个目录移动到另一个目录

linux - 显示某个用户是 Bash 成员的组列表

linux - 在 Linux 中移动文件夹

ruby-on-rails - Rails 4 + Apache 错误 : End of script output before headers:

python - 通过 Chef 配方在 Linux 中安装 python2.7

php - 使用 Homebrew 更新 PHP 5.4.x?

Apache 不会加载证书

php - 用于 php 的内存缓存 - 无法连接

PHPMyAdmin 较大的上传限制不变