dacongyun.com
分享国内外服务器主机优惠信息

FRP内网穿透相关

Frps服务端一键配置脚本
https://github.com/MvsCode/frps-onekey

教程
https://www.yxtvs.com/2020/872.html

FRP和Nginx共用80端口
在/etc/nginx/conf/nginx.conf中http{ }里添加以下参数,达到访问内网省去网址必须加内网服务端口的麻烦

server {

  listen 80;

  server_name *.abc.xyz;

  location / {

   proxy_pass http://127.0.0.1:81;

   proxy_redirect http://$host/ http://$http_host/;

   proxy_set_header X-Real-IP $remote_addr;

   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

   proxy_set_header Host $host;

  }

}

网友回复:

注册 谢谢分享。我看了下,你分享的教程地址没发访问了

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人支付接口

云免签H5支付