Created
January 31, 2020 09:58
-
-
Save iandmyhand/2b1b4b62b796e9cce98277c4141bc462 to your computer and use it in GitHub Desktop.
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
server { | |
... | |
server_name exposed.domain.com; | |
... | |
location / { | |
proxy_pass "http://internal.domain.com:1234"; | |
proxy_pass_request_headers on; | |
proxy_set_header Host $host; | |
proxy_redirect "http://exposed.domain.com:1234" "https://exposed.domain.com"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment