502 Gateway NGINX on Static Site

64 views
Skip to first unread message

Dos Branding

unread,
Dec 30, 2017, 12:05:17 PM12/30/17
to Google App Engine

I am trying to host my site on google app engine. I have created an app.yaml file but when I **deploy**, I am getting the 502 bad Gateway. 

Below is my nginx.conf file. 

    events {}

    http {
    server {
    server_name ishmaelsu.com;
    access_log /error.log;
    
    return 301 https://$host$request_uri;
    
    location / {
    root IshmaelSunday;
    index index.html;
    }
    }
    }

This is my log file after running **gcloud app logs read**

[![enter image description here][1]][1] 


After running `netstat -tulp | grep 8082`, this is what I get. 

[![enter image description here][2]][2]


Karthick (Cloud Platform Support)

unread,
Jan 1, 2018, 4:54:01 PM1/1/18
to Google App Engine
Hello,

You can run 'sudo netstat -tulp | grep 80' to see if there is any other process is already running port 80 and you can kill it using 'sudo kill 'PROCESSID' '

You can also refer to this thread to troubleshoot further. 

However, this seems like a question that would be better posted to stackoverflow or serverfault with the right tags to seek assistance from bigger technical community, rather than a google discussion post. This isn't the right place to look for 1-on-1 support, being the forum meant for the general discussion of the platform.


Reply all
Reply to author
Forward
0 new messages