user="some_user"serverAddr="frps.example.com"serverPort=20000#内网 HTTPS 服务[[proxies]]name="web-https"type="https"localPort=443customDomains= ["web-https.frps.example.com"] 将请求转发到内网服务器。 但是这样做会报错502, nginx
proxy_pass https://$host:8643; #通过域名访问frp服务 proxy_pass中不能写成IP的形式。 nginx反向代理frp缓存加速http+https 可以参考我的博文,已经根据最新的理解做了更新。 http://www.wangxianfeng.cn/wordpress/2018/06/10/nginx%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86frp%e7%bc%93%e5%ad%98%e5%8...
server_name *.domain.com; #填写你需要的泛域名 charset utf-8; if ($server_port !~ 443){ #若端口号不为443 rewrite ^(/.*)$ https: #$host$1 permanent; #302跳转到https地址 error_page 497 https://$host$request_uri; #497用于http到https的强制跳转 ssl_certificate ./fullchain; #ssl证书...
proxy_pass https://$host:8643; #反代https通过域名访问frp服务 } location ~* \.(jpg|jpeg|gif|png|svg|css|scss|js|ico|xml|woff|woff2|ttf|otf|eot)$ { proxy_ssl_server_name on; proxy_pass https://$host:8643; #反代https通过域名访问frp服务 proxy_redirect https://$host/ https://$http...
使用frp+nginx搭建http/https内网穿透 怪盗柯南 程序猿 21 人赞同了该文章 前置条件 一台云服务器 一个备案域名 一、配置https证书 由于需要对泛域名进行申请ssl证书,各运营商不支持免费的泛域名ssl证书,所以采用acme的免费证书。记得提前去域名运营商那里解析一个子域名到云服务器ip,如果是泛域名的话需要添加*.[...
frp 是一个可用于内网穿透的高性能的反向代理应用,支持 tcp, udp, http, https 协议。 先决条件 有一个域名,并解析到自己服务器上,如:*.frp.lestat.me 有一个具备固定ip的公网服务器 系统环境 假设环境为: 服务器OS:ubuntu17.10 客户端OS:macOS High Sierra ...
内网穿透实用性非常强, 例如支付回调/访问内网数据库 域名dns需要解析到服务器地址 frp下载地址 https://github.com/fatedier/frp/releases 下载这两个文件 frp_0.38.0_linux_amd64.tar.gz frp_0.38.0_windows_amd64.zip...
1. 下载frp服务端 可以到https://github.com/fatedier/frp/releases找到最新版本下载 # 下载服务端代码wgethttps://github.com/fatedier/frp/releases/download/v0.16.1/frp_0.16.1_linux_amd64.tar.gz# 解压tarzxf ./frp_0.16.1_linux_amd64.tar.gz# 进入frp文件夹cd./frp_0.16.1_linux_amd64# 创建frp...
2、使用frp进行https代理 此方式需要注意的是这里的证书是放在客户端下的 代理服务器(服务器端)设置 进入frps.ini,输入命令 vim frps.ini 1. 编辑 [common] bind_addr = 0.0.0.0 bind_port = 7000 #服务器开放端口,用于客户端与服务器通信 vhost_http_port = 80 #http虚拟端口,http请求 ...
nginx 设置证书后浏览器访问,返回502日志:2020/07/30 19:42:33 [error] 83272#0: *2 peer closed connection in SSL handshake while SSL handshaking to upstream, client: 22.146.48.245, server: *.frp.heyj.top, request: "GET / HTTP/2.0", upstream: "https://127.0.0.1:7003/", host: "test....