vim proxy.conf
upstream chao{
server 61.135.169.121:80;
server 61.135.169.125:80;
}
server {
listen 80;
server_name www.baidu.com;
location / {
proxy_pass http://chao/;
proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
}
}
upstream chao{
server 61.135.169.121:80;
server 61.135.169.125:80;
}
server {
listen 80;
server_name www.baidu.com;
location / {
proxy_pass http://chao/;
proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
}
}
编辑回复