upstream baidunode { server xxx:port weight=10 max_fails=3 fail_timeout=30s; server xxx:port weight=10 max_fails=3 fail_timeout=30s; } location / { add_header Cache-Control no-cache; proxy_set_header Host local.baidu.com; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://baidunode; proxy_connect_timeout 30s; }
|