# $host,浏览器上输入的域名或ip;$server_port,浏览器上输入的端口;$http_host,浏览器上输入的域名/ip加端口
proxy_set_header Host $host:$server_port;
# $remote_addr,真实的请求客户端地址(不是普遍适用) proxy_set_header X-Real-IP $remote_addr;
# $proxy_add_x_forwarded_for,请求地址拼接
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;