1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| server {
listen 80;
server_name _;
location / {
proxy_pass http://192.168.241.11;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
}
location /beijing {
proxy_pass http://192.168.241.22;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
}
location /nanjing {
proxy_pass http://192.168.241.23;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
}
}
|