linux - 无法远程连接到 Apache 服务器

标签 linux apache

我在puppy linux中设置了apache,并且可以看到本地主机中的文件。但是,当我打开端口80并尝试从iphone连接apache时,但失败了。我只能看到一个白色页面。也许它不是 404,因为它没有显示 404 错误。(在我打开端口之前,我看到了 404。)

我已将 apache.conf 配置为允许所有人。

访问日志和错误日志没有显示任何内容。

这是 iptables-L

Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ftp 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:smtp 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:finger 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:www 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:pop3 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:auth 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:imap2 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:443 
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:syslog 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:printer 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:993 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:995 
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:www 
ACCEPT     udp  --  anywhere             anywhere            state NEW udp dpt:www 
A   CCEPT     all  --  anywhere             anywhere            state NEW 
 TRUSTED    all  --  anywhere             anywhere            state NEW 

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
DROP       icmp --  anywhere             anywhere            state INVALID 

Chain TRUSTED (1 references)
target     prot opt source               destination         
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 
DROP       icmp --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-            unreachable 

网络统计

tcp        0      0 192.168.100.100:80      0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN 

如何解决这个问题?

最佳答案

tcp 0 0 192.168.100.100:80

问题就出在这里。服务器正在监听特定的本地 IP 地址,而不是 0.0.0.0。

关于linux - 无法远程连接到 Apache 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21136143/

相关文章:

linux - 合并许多大型 CSV 文件(在 Linux 中)

linux - Linux 上的 GetModuleHandle(NULL)

php - Cron PHP 文件 - header 已发送

xml - 错误 : This XML file does not appear to have any style information associated with it

apache - 使用 apache mod_proxy 时应用程序错误直通

linux - linux的scp开源实现

linux - 在 ksh 函数中使用 EOF

php 包括不使用相对路径 - DocumentRoot 问题? MAMP?

PHP localtime() 在 Apache 执行时不正确

linux - 错误 MySQL 说 : Documentation Cannot connect: invalid settings. [Ubuntu]