Created
December 2, 2018 16:52
-
-
Save vshmoylov/780096ec3705fd671b8be28c6b2e07cd to your computer and use it in GitHub Desktop.
proxying requests to another domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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