Skip to content

Instantly share code, notes, and snippets.

@memorycraft
Created February 23, 2014 18:18
Show Gist options
  • Save memorycraft/9175103 to your computer and use it in GitHub Desktop.
Save memorycraft/9175103 to your computer and use it in GitHub Desktop.
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment