《frps穿透https站点集群办法》---原创 by Ashon,适用于最新版

本文详细介绍了Frps和Frpc的配置,包括HTTP和HTTPS代理设置,以及如何与Nginx配合使用,确保正确设置proxy、端口映射和安全选项。
摘要由CSDN通过智能技术生成

此程序不支持从http跳转,如需跳转请搭配nginx使用。

frps配置,部分信息根据情况自行修改

bindPort =7000

auth.token = "12345678"

vhostHTTPPort = 80

vhostHTTPSPort = 443

transport.tcpMux = true

webServer.addr ="0.0.0.0"

webServer.port =7500

webServer.user = "admin"

webServer.password = "admin"

#custom404Page = "/etc/frp/404.html"

 

frpc配置,根据情况自行修改

serverAddr = "127.0.0.1"

serverPort = 7000

transport.protocol = "websocket"

auth.token = "12345678"

transport.tcpMux = true

 

[[proxies]]

name = "web01"

type = "http"

localPort = 81

customDomains = ["web01.yourdomain.com"]

 

[[proxies]]

name = "web02"

type = "http"

localPort = 82

customDomains = ["web02.yourdomain.com"]

 

#关键

[[proxies]]

name = "https"

type = "https"

customDomains = ["*.yourdomain.com"]

#一定要用通配符,否则穿透多站点失败

 

[proxies.plugin]

type = "https2http"

localAddr = "127.0.0.1:80"

crtPath = "/etc/frp/cert/yourdomain.crt"

keyPath = "/etc/frp/cert/yourdomain.key"

#到此结束,如不熟练,请勿多加任何信息。如添加:“hostHeaderRewrite = ”等,操作不当可能导致穿透失败。

#特殊情况下,必要时可在最后一行添加hostHeaderRewrite = "https://*.yourdomain.com",其他问题请留言。

#转载请注明出处,谢谢!

 

  • 10
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值