Created
December 27, 2016 08:37
-
-
Save eMahtab/65f6b74a29369aa273248937710be57a to your computer and use it in GitHub Desktop.
Setting NGINX as reverse proxy for multiple express application
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
| server{ | |
| listen 80; | |
| location / { | |
| proxy_pass "http://127.0.0.1:3000"; | |
| } | |
| location /codify { | |
| rewrite ^/codify(.*) $1 break; | |
| proxy_pass "http://127.0.0.1:3001"; | |
| } | |
| location /linker { | |
| rewrite ^/linker(.*) $1 break; | |
| proxy_pass "http://127.0.0.1:3002"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment