花晨月夕
专注web开发,可开发网站、小程序、app、oa、erp等各种系统
frp反代家里的服务器 网站怎么实现http跳转到https呢?
2023-02-25 13:34:29
这需要frp客户端和nginx配合来实现跳转
你的nginx并不知道用户实际访问是http还是https,因为frp客户端在连接到内网的web服务器时都是通过80端口,所以只需要想办法告诉nginx用户是通过http还是https问题问题就能解决了
可以在frp客户端上配置加一个请求头,告诉nginx用户是用http访问的
加入配置 header_X-From-ssl = no
比如某个站点的配置修改后是这样的
[code:frp]type = http
local_ip = 192.168.2.211
local_port = 80
header_X-From-ssl = no
custom_domains = abc.net,www.abc.net
use_encryption = true
use_compression = true[/code]
然后重启frp客户端
在web服务器nginx配置中加入
[code:nginx]if ($http_x_from_ssl = 'no'){
return 301 https://$host$request_uri;
}[/code]
判断是否有在frp中自定义的请求头,如果有则代表是用http访问,那么就301跳转到https协议的网址
保存之后重启nginx
2023-02-23 08:54:10
在kodcloud官方下载原版程序 https://kodcloud.com/download/
将压缩包中的plugins\zipView文件夹上传到KOD文件管理插件 目录 zb_users/plugin/KODExplorer/KODExplorer/plugins/
打开文件 zb_users/plugin/KODExplorer/KODExplorer/data/system/system_setting.php
大概在93行位置加入以下代码
[code:javascript],
"zipView": {
"id": "zipView",
"regiest": {
"user.commonJs.insert": "zipViewPlugin.echoJs"
},
"status": 1,
"config": {
"pluginAuth": "all:1",
"fileExt": "zip,tar,gz,tgz,ipa,apk,rar,7z,iso,bz2,zx,z,arj,epub",
"fileSort": 10
}
}[/code]
[img]https://kfuu.cn/zb_users/upload/2023/02/20230223085334167711361474435.png[/img]
之后刷新页面即可恢复zip相关功能
2023-02-23 07:52:22
[img]https://kfuu.cn/zb_users/upload/2023/02/20230223075221167710994122060.png[/img]
2023-02-13 21:09:49
@高地把你使用的代码
.square-thumb .entry-media .placeholder {
padding-bottom: 150%!important;
}
改为
[code:css].square-thumb:not(.single) .entry-media .placeholder {
padding-bottom: 150%!important;
}[/code]
2023-02-13 21:06:58
@高地[code:css].article-content .post-album {background-color: transparent;}
.article-content .post-album li {width: 25%;}[/code]
2023-02-12 10:25:21
参考:
https://kfuu.cn/qanda/theme/234.html
https://kfuu.cn/qanda/theme/259.html
2023-01-30 17:33:33
[img]https://kfuu.cn/zb_users/upload/2023/01/20230130172430167507067091129.png[/img]
在保存发送测试邮件前先勾选“调试模式”,这样在发送测试时会显示详细的错误信息。
1、当调试内容中出现“password”或者“authentication”等字样,那是因为是账号或者密码错误。如果是企业邮箱,那么账号必须是完整的邮件地址;无论是个人还是企业邮箱,大厂的邮箱使用smtp密码一般都是要使用授权码,可以登录服务商邮箱后台生成授权码。个人邮箱一般都需要手动开启smtp功能,例如QQ邮箱开启smtp方法:https://cloud.tencent.com/developer/article/2177098
2、如果调试信息包含 “Failed to connect to server”,则是因为无法连接到smtp服务器,也可以尝试将“smtp协议”改为ssl,或者在默认协议下将端口改为80,如仍然出现此错误,需检查主机环境配置,环境没问题的情况下,也可能是你的主机服务商封锁了邮件协议
3、如果一直在发送中,或者在发送中一会后页面显示502错误,那么参考上面一条


