系统相关
首页 > 系统相关> > Nginx 代理frp

Nginx 代理frp

作者:互联网

需要把frps的http服务端口改为8080 或者其他 与下面配置项对应

server
{
  listen 80;
  server_name *.frp.*.com;
  location / {
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Scheme  $scheme;
         proxy_pass http://127.0.0.1:8080; #会访问frpc代理的后端服务器 / 接口
    }
}

标签:set,http,Forwarded,header,代理,Nginx,frp,proxy
来源: https://blog.csdn.net/weixin_43515759/article/details/121209748