Skip to content

Instantly share code, notes, and snippets.

@vshmoylov
Created December 2, 2018 16:52
Show Gist options
  • Save vshmoylov/780096ec3705fd671b8be28c6b2e07cd to your computer and use it in GitHub Desktop.
Save vshmoylov/780096ec3705fd671b8be28c6b2e07cd to your computer and use it in GitHub Desktop.
proxying requests to another domain
location / {
proxy_pass http://example.com;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment