QQ扫一扫联系
curl https://api.xxx.com/
location /xxx/ {
proxy_pass https://api.xxx.com/;
proxy_set_header Host api.xxx.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