Skip to content

Instantly share code, notes, and snippets.

@ety001
Created September 22, 2015 05:03
Show Gist options
  • Save ety001/76ffd9949a4f036ab22c to your computer and use it in GitHub Desktop.
Save ety001/76ffd9949a4f036ab22c to your computer and use it in GitHub Desktop.
nginx proxy configuration
server
{
listen 80;
server_name xxxxxx;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://xxxxxx;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment