【问题标题】:NGINX: 504 Gateway Time-outNGINX:504 网关超时
【发布时间】:2013-04-10 13:08:31
【问题描述】:
events {
 worker_connections  1024;
}


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


sendfile        on;

keepalive_timeout  65;



server {
    listen  0.0.0.0:9001;
    server_name  localhost;




    location / {
        proxy_pass http://0.0.0.0:9000; 
    }
}
}

我在 Windows 7 上运行 NGINX。我在本地主机的 9000 端口上启动并运行了 Grunt 服务器。每次尝试加载 localhost:9001 时,我都会收到“504 Gateway Time-out”。

我需要添加一些东西才能在 Windows 上运行它吗?和防火墙有关系吗?

请提出解决方案

【问题讨论】:

    标签: nginx timeout gateway


    【解决方案1】:

    地址 0.0.0.0 与 localhost 不同。将地址更改为 127.0.0.1 即可解决问题。

    另见http://en.m.wikipedia.org/wiki/0.0.0.0

    在 Internet 协议版本 4 中,地址 0.0.0.0 是不可路由的元地址,用于指定无效、未知或不适用的目标。为无效数据赋予特殊含义是带内信令的应用。

    【讨论】:

      猜你喜欢
      • 2011-08-30
      • 1970-01-01
      • 1970-01-01
      • 2013-02-13
      • 2011-04-08
      • 2011-10-04
      • 2019-10-22
      • 2019-12-02
      • 2019-01-20
      相关资源
      最近更新 更多