标签:add cat location lis 配置 upstream rem header dock
http {
upstream docker {
server 192.168.88.106:10001;
server 192.168.88.106:10002;
server 192.168.88.106:10003;
}
server {
listen 81;
server_name localhost;
location / {
proxy_pass http://docker;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}
标签:add cat location lis 配置 upstream rem header dock
原文地址:http://www.cnblogs.com/chenjw-note/p/6820507.html