Skip to content

Instantly share code, notes, and snippets.

@tnuanchuay
Created November 22, 2017 14:07
Show Gist options
  • Save tnuanchuay/d9f3db5265e2a3a96574d011d6abfd55 to your computer and use it in GitHub Desktop.
Save tnuanchuay/d9f3db5265e2a3a96574d011d6abfd55 to your computer and use it in GitHub Desktop.
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;
}
}
}
@wwarodom
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment