折雨的天空
frp映射https的问题
2018-12-3 我好笨


临时使用一下还行



先开启frp的https监听,在frps.ini中增加



vhost_https_port=443



然后,本地配置https域名,域名需要申请证书,可以用Let's免费的证书







记录一个配置文件:







SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
SSLProtocol all -SSLv2 -SSLv3
Listen 443
<VirtualHost *:443>
ServerName ****.com:443
DocumentRoot "D:/www"
SSLEngine on
SSLCertificateFile "D:/xampp/apache/conf/fullchain.pem"
SSLCertificateKeyFile "D:/xampp/apache/conf/privkey.pem"
SSLCertificateChainFile "D:/xampp/apache/conf/chain.pem"
SSLOptions +StdEnvVars
</VirtualHost>



这个配置文件可以换掉apache默认的,然后重启apache。







frpc.ini配置需要把type定义为https即可,示例代码如下:



[web_qsn]
type = https
local_port = 443
use_encryption = false
use_compression = true
custom_domains =*****.com



另外可以在frps的服务器上配置泛域名,方法不一样,可以搜一下,我没测试过。





发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容