我刚刚在8083上安装了Nginx,我可以在从本地机器发送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
我怎么知道它是否安装了非分布式防火墙?
答案 0 :(得分:0)
我联系了托管支持,服务器外部有一个硬件防火墙,阻止从远程IP到达端口。