Created
March 17, 2015 22:40
-
-
Save tommydangerous/760db9411becab45a37f to your computer and use it in GitHub Desktop.
Belly's Stack v2 Nginx
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
upstream api { | |
least_conn; | |
server 10.0.0.101:8080; | |
server 10.0.0.102:8080; | |
server 10.0.0.103:8080; | |
server 10.0.0.104:8080; | |
} | |
upstream homepage { | |
least_conn; | |
server 10.0.0.201:8080; | |
server 10.0.0.202:8080; | |
} | |
server { | |
listen 80; | |
server_name api.bellycard.com; | |
location / { | |
proxy_pass http://api; | |
} | |
} | |
server { | |
listen 80; | |
server_name www.bellycard.com; | |
location / { | |
proxy_pass http://homepage.com | |
} | |
location /api { | |
proxy_pass http://api; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment