nginx反代

phpBB相关
回复
头像
admin
网站管理员
帖子: 78
注册时间: 2016-12-31, 08:39

nginx反代

帖子 admin » 2020-03-10, 04:27

代码: 全选

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 "";
}

回复

在线用户

正浏览此版面之用户: 没有注册用户 和 0 访客