QQ扫一扫联系
curl https://api.example.com/
location /xxx/ {
proxy_pass https://api.example.com/;
proxy_set_header Host api.example.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_ssl_server_name on;
}
http://<服务器IP>:<端口>/xxx