代码: 全选
location /
{
proxy_redirect http://源站 https://你的域名 ; #登录后不会跳回源站
subs_filter_types text/css text/xml application/xhtml+xml application/xml;
subs_filter 源站 你的域名;
rewrite ^/(.*) /$1?style=2 break; #设置主题
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Referer https://源站;
proxy_set_header Host 源站;
proxy_pass http://源站;
proxy_set_header Accept-Encoding "";
}