Skip to content

Instantly share code, notes, and snippets.

@iandmyhand
Created January 31, 2020 09:58
Show Gist options
  • Save iandmyhand/2b1b4b62b796e9cce98277c4141bc462 to your computer and use it in GitHub Desktop.
Save iandmyhand/2b1b4b62b796e9cce98277c4141bc462 to your computer and use it in GitHub Desktop.
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