Ticket #788: nginx_config.txt

File nginx_config.txt, 323 bytes (added by joh-m@…, 11 years ago)

example configuration with two upstreams

Line 
1server {
2
3 <snip>
4
5 resolver 10.0.0.2 169.254.169.253 valid=5s;
6 set $mybackenda some.aws.elb.com;
7 set $mybackendb other.aws.elb.com;
8
9 location ~ ^(/assets)?/mybackenda {
10 ssi on;
11
12 proxy_pass http://$mybackenda;
13 }
14
15 location ~ ^(/assets)?/mybackendb {
16 ssi on;
17
18 proxy_pass http://$mybackendb;
19 }
20}