frp nginx 共用80端
在nginx的配置文件里面加上这个
然后frp监听8080端口,重启nginx,搞定
server { listen 80; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host:80; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_hide_header X-Powered-By; } }
- Author: zhoujie
- Link: https://blog.zhoujie218.top/archives/1030.html
- License: This work is under a 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work.