Skip to content

Instantly share code, notes, and snippets.

@michaelhenry
Created May 28, 2013 15:33
Show Gist options
  • Save michaelhenry/5663635 to your computer and use it in GitHub Desktop.
Save michaelhenry/5663635 to your computer and use it in GitHub Desktop.
NGINX Location Config /etc/nginx/sites-enabled/default
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout 10;
proxy_read_timeout 10;
proxy_pass http://127.0.0.1:8000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment