I\'m trying to serve Django static media through nginx, Here\'s my nginx.conf
server { listen 7777; listen localhost:7777; server_name e
server { listen 7777; listen localhost:7777; server_name example.com; location / { proxy_pass http://localhost:7777; ...
nginx listening on port 7777 and connecting to a proxy located at port 7777 on same host. No wonder it returns 502 error.