Home > Backend Development > PHP Tutorial > nginx reverse proxy to specific website

nginx reverse proxy to specific website

WBOY
Release: 2016-07-29 09:03:58
Original
1345 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template