Created
November 22, 2017 14:07
-
-
Save tnuanchuay/d9f3db5265e2a3a96574d011d6abfd55 to your computer and use it in GitHub Desktop.
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { | |
upstream myapp1 { | |
server 128.199.223.229:8080; | |
server 128.199.224.175:8080; | |
server 128.199.224.194:8080; | |
server 128.199.210.95:8080; | |
} | |
upstream myapp2 { | |
server 188.166.238.138; | |
server 188.166.229.175; | |
server 188.166.228.182; | |
server 188.166.226.159; | |
} | |
server { | |
listen 81; | |
location / { | |
proxy_pass http://myapp2; | |
} | |
} | |
server { | |
listen 80; | |
location / { | |
proxy_pass http://myapp1; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you