2010-03-23 55 views
0

我剛剛安裝了Nginx在8083上偵聽從本地機器發送HTTP請求時,我可以獲得HTTP響應。Nginx無法響應遠程IP

如:

curl -i localhost:8083 

然而,當我做同樣的從遠程機器,它只是掛起,直到SSH超時,或者如果從瀏覽器進行訪問時,從瀏覽器的時間。

我非常有默認的配置:

user apache apache; 
worker_processes 1; 

error_log logs/error.log; 
#error_log logs/error.log notice; 
#error_log logs/error.log info; 

pid  logs/nginx.pid; 


events { 
    worker_connections 1024; 
} 


http { 
    include  mime.types; 
    default_type application/octet-stream; 

    log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 
         '$status $body_bytes_sent "$http_referer" ' 
         '"$http_user_agent" "$http_x_forwarded_for"'; 

    access_log logs/access.log main; 

    sendfile  on; 
    tcp_nopush  on; 

    #keepalive_timeout 0; 
    keepalive_timeout 65; 

    #gzip on; 

    server { 
     listen  8083; 
     server_name _; 

     charset utf-8; 

     #access_log logs/host.access.log main; 

     location/{ 
      root html; 
      index index.html index.php; 
     } 

     #error_page 404    /404.html; 

     # redirect server error pages to the static page /50x.html 
     # 
     error_page 500 502 503 504 /50x.html; 
     location = /50x.html { 
      root html; 
     } 

     location ~ /\.ht { 
      deny all; 
     } 
    } 


} 

什麼想法?

以下是我得到的iptables -L

# iptables -L 
Chain INPUT (policy ACCEPT) 
target  prot opt source    destination 

Chain FORWARD (policy ACCEPT) 
target  prot opt source    destination 

Chain OUTPUT (policy ACCEPT) 
target  prot opt source    destination 

我怎麼知道它是否有安裝了非分配防火牆?

+0

服務器上是否安裝了防火牆? – 2010-03-23 10:21:42

+0

我添加了信息從iptables的帖子。 – bucabay 2010-03-23 16:47:42

回答

0

我聯繫了託管支持,並且服務器外部有一個硬件防火牆,用於防止從遠程IP訪問端口。