I\'m using nginx as a proxy server to forward requests onto my gunicorn server. When I run sudo nginx -t -c /etc/nginx/sites-enabled/mysite I get the following erro
sudo nginx -t -c /etc/nginx/sites-enabled/mysite
Turns my nginx config was ok. The problem was with my gunicorn server was not running properly.