location / {
proxy_pass http://xxx.com;
server_name_in_redirect on;
#proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding "";
proxy_set_header Content-Encoding "";
subs_filter xxx.com 你的域名.com;
}
用这个模块substitutions4nginx

有几点要注意
proxy_redirect on; 如果off它有重定向会暴露
subs_filter xxx.com 你的域名.com;用subs_filter把它的内容替换掉,换成你自己,你要自己去分析他的网页。

Last modification:February 2nd, 2019 at 08:25 am
If you think my article is useful to you, please feel free to appreciate