nginx目录不适用于config

时间:2016-02-27 15:13:42

标签: linux nginx server

下面我的nginx配置有什么问题?

server {
    listen 80;

    server_name dashboard.abc.io;

    location / {
        root dashboard;
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

我的网关错误很糟糕。我有如下文件结构

/home/dashboard/index.html

这是日志

10:10:42 [error] 23732#0: *2527 connect() failed (111: Connection refused) while connecting to upstream, client: 210.195.178.125, server: abc.io, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:3000/favicon.ico"

0 个答案:

没有答案