问下frp怎么配置https的?
情况是这样的,这个frp我已经配好了http 我在公网上的服务器配置好了frps.ini 如
[common]
bind_port=1000
token=123456
vhost_http_port=1010
然后我在内网服务器里面配置frpc.ini如
[common]
server_addr = xxx.xx.xx.xxx
server_port = 1000
token=123456
tcp_mux_keepalive_interval = -1
[test1]
type = http
local_ip = 127.0.0.1
local_port = 80
remote_port = 1010
custom_domains =test.com
这样我用 test.com:1010 就能访问内网的80网站。
然后因为小程序要用,需要配置个https,配置一个https,然后问下如何配置https
我尝试了下
[https-test]
type = https
local_ip = 127.0.0.1
local_port = 443
custom_domains = test.com
plugin = https2http
plugin_local_addr = 127.0.0.1:80
plugin_host_header_rewrite = 127.0.0.1
plugin_crt_path =test.com.pem
plugin_key_path =test.com.key
plugin_header_X-From_Where = frp
use_encryption = true
但是没有成功,不知为什么嘛?
推荐文章: