frp解析内网https供公网使用的配置

chanchaw 2020-06-20 03:16:14
1. 我服务端 frps.ini 配置(CentOS)

[common]
bind_port = 7000
vhost_http_port = 8080
vhost_https_port = 443


2. 局域网内一个WIN服务器的 frpc.ini 的配置

[https2http_hy]
type = https
custom_domains = hy.我的域名.club

plugin = https2http
plugin_local_addr = 127.0.0.1:8080

plugin_crt_path = C:\Windows\frp\1_www.我的域名.club_bundle.crt
plugin_key_path = C:\Windows\frp\2_www.我的域名.club.key
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-Form-Where = frp


3. 公网其他电脑在浏览器访问
使用地址:https://hy.我的域名.club:8080/PADEMIS/execute/query/xxoo
可以访问通不过提示是不安全的

使用地址:https://hy.我的域名.club:443/PADEMIS/execute/query/xxoo
和地址:https://hy.我的域名.club/PADEMIS/execute/query/xxoo
同样的效果都是404

由于上面提示 https 证书的不安全导致微信中访问不通,但是电脑端浏览器上可以继续访问
如果能解决这个不安全的提示?这个后台服务是打算给微信使用的。
我的猜想是不是因为这个证书是给:www.我的域名.club 申请的,那么二级域名 hy.我的域名.club
不能使用?
...全文
9441 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
X-i-n 2020-06-21
  • 打赏
  • 举报
回复
看了你的叙述有点凌乱,按下面的步骤检查一下吧。 1. centos服务器同局域网的主机,使用http://centos:8080访问服务; 2. 外部通过frps,访问https://hy.xxxx.club:443/……(和https://hy.xxxx.club/……等效); 3. 并且SSL证书必须是为 *.xxxx.club签发的通配证书,或者为hy.xxxx.club签发的普通证书。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧