【已完成】网站防盗链崩溃
系统版本:免费版 8.0.5问题描述:
宝塔站点配置防盗链配置路径改写为/xxx.png导致报错
相关截图(日志、错误):
AttributeError: 'NoneType' object has no attribute 'groups'
Traceback (most recent call last):File "/www/server/panel/class/panelSite.py", line 5449, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+none\s+blocked\s+(.+);\n", tmp).groups().split())))AttributeError: 'NoneType' object has no attribute 'groups'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject res = run_obj.run(toObject, defs, get)File "/www/server/panel/BTPanel/__init__.py", line 2262, in run result = getattr(toObject, get.action)(get)File "/www/server/panel/class/panelSite.py", line 5451, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+(.+);\n", tmp).groups().split())))AttributeError: 'NoneType' object has no attribute 'groups'
您好,请截图看下配置的防盗链的截图 本帖最后由 宝塔用户_nannek 于 2024-3-4 13:52 编辑
大炮运维V587 发表于 2024-3-4 11:08
您好,请截图看下配置的防盗链的截图C:\Users\DELL\AppData\Roaming\Typora\typora-user-images\image-20240304135002732.png
面板点开就是这样了 宝塔用户_nannek 发表于 2024-3-4 13:50
面板点开就是这样了
打开配置文件,把你修改后的防盗链删掉,使用默认的防盗链配置
页:
[1]