【发布时间】:2011-01-30 14:42:01
【问题描述】:
我刚刚安装了 Nginx 监听 8083 从本地机器发送 HTTP 请求时可以得到 HTTP 响应。
例如:
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
我怎么知道它是否安装了非分布式防火墙?
【问题讨论】:
-
服务器上是否安装了防火墙?
-
我将 iptables 中的信息添加到帖子中。
标签: apache nginx firewall port