求一个 nginx 反代规则 a.com 反代 b.com
a.com 反代 b.com , b.com 是 wordpress 做的站,用下面的代码可以反代 1024 ,但是不能替换 b.com 里面的文章链接。求方法。server {
listen 80;
server_namea.com www.a.com;
location / {
sub_filter t66y.com a.com;
proxy_pass http://www.t66y.com;
proxy_set_header X-Real-IP 104.27.121.116;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer http://www.t66y.com;
}
} 没有大佬会嘛 ?
页:
[1]