Created
January 8, 2020 02:39
-
-
Save banyudu/8a62842959abb357560c391f2eed481f to your computer and use it in GitHub Desktop.
nginx proxy_pass rewrite prefix
This file contains hidden or 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 /foo { | |
| rewrite /foo/(.*) /$1 break; | |
| proxy_pass http://localhost:3200; | |
| proxy_redirect off; | |
| proxy_set_header Host $host; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment