0

os centos 6.3 Nginx はローカル ネットワークでは動作しませんが、localhost では動作します。elinks でテスト済み。

# ps -ef | grep nginx
root      1447     1  0 Aug07 ?        00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx     1448  1447  0 Aug07 ?        00:00:00 nginx: worker process

# netstat -napt | grep nginx
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1447/nginx

# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

# cat /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted
4

1 に答える 1

1

これはNginxの問題ではないようです。Nginx のアクセス ログまたはエラー ログにアクセス試行が記録されていますか? それがNginxの問題である場合は、そうする必要があります。

出力は、 Nginxnetstatが実行され、すべての IP のポート 80 でリッスンしていることを示しています。

自分でポート スキャンを使用nmapしてみて、ポート 80 で実行されているものが検出されることを確認します。

nmap -vv -P0 (server IP address or DNS)

何も見つからない場合は、別の場所でブロックされているようです。ネットワーク管理者に相談してください。

于 2012-08-09T12:00:03.693 に答える