502静态站点上的Gateway NGINX

时间:2017-12-30 01:47:27

标签: google-app-engine nginx https

我正在尝试在Google应用引擎上托管我的网站。我创建了一个app.yaml文件但是当我部署时,我得到了502坏网关。

下面是我的nginx.conf文件。

events {}

http {
    server {
        server_name ishmaelsu.com;
        access_log /error.log;

        listen 8082;
        return 301 https://$host$request_uri;

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

运行 gcloud app logs

后,这是我的日志文件

enter image description here

运行netstat -tulp | grep 8082后,这就是我得到的。

enter image description here

1 个答案:

答案 0 :(得分:0)

您是否有使用端口8082的其他网站或服务?你在防火墙上打开了端口吗?

您执行重定向到SSL但没有关于此的配置。

netstat -tulp | grep 8082