Created
December 27, 2016 10:37
-
-
Save eMahtab/82094cfa074210216b84eb4a7162c8aa to your computer and use it in GitHub Desktop.
Configuring multiple sites reverse proxy with nginx
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; | |
| server_name mahtabalam.net; | |
| location / { | |
| proxy_pass "http://127.0.0.1:3000"; | |
| } | |
| } | |
| server{ | |
| listen 80; | |
| server_name kazan.travel; | |
| location / { | |
| proxy_pass "http://127.0.0.1:3001"; | |
| } | |
| } | |
| server{ | |
| listen 80; | |
| server_name daniel.io; | |
| location / { | |
| 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