Laopo’s unit needs to frequently query the organization code, but their unit’s IP has been blocked by others. In order to facilitate laopo’s query, a reverse proxy is configured on the Alibaba server. Follow the configuration below to succeed. default.html default.htm default " X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer http://www.nacao.org.cn;
proxy_set_header Host www.nacao.org.cn;
proxy_pass http://125.35.63.8/; #IP address of the proxy website
proxy_set_header Accept- Encoding "";
} }
?
access_log /home/wwwlogs/laopo.xxxxx.net.log access;
} The above introduces nginx reverse proxy to a specific website, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.