location ~ ^/ocr.php {
proxy_set_header Host "www.baidu.com";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://www.baidu.com
break;
}
Nginx 反向代理配置
最新推荐文章于 2024-09-20 09:00:00 发布