upstream wsgi server localhost 8080 server localhost 8081 server local

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
upstream wsgi {
server localhost:8080;
server localhost:8081;
# server localhost:8082;
# server localhost:8083;
}
server {
listen 90;
server_name byteflow;
location / {
proxy_pass http://wsgi;
}
}
upstream apache {
server localhost:81;
server localhost:82;
}
server {
listen 90;
server_name gtv;
location / {
proxy_pass http://apache;
}
}