nginx反代frp控制面板

之前安(下)装(载)frps的时候用的
location / {
rewrite ^ https://$server_name/static/#/ permanent;
}
location ^~ /static {
proxy_pass http://127.0.0.1:81/static;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /api {
proxy_pass http://127.0.0.1:81/api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

注这里是用二级域名一级目录进行反代的

发表评论

发表评论

*

// 隐藏的 input

冷冷清清