长亭百川云 - 技术讨论

雷池设置身份验证后打开网页是空的

发布于 8 天前

# 雷池 WAF
故障反馈

发布于 8 天前

头像

Zrookie

更新于 8 天前

0

0

开启身份认证以后页面一片空白,这正常吗?

bf23a632-2a35-46fd-a73b-0bc16f6168f3.png

浏览器控制台报错:

15df5451-b63c-4119-9cb3-34dd2b270a5e.png

1Failed to load resource: the server responded with a status of 403 (Forbidden)
2Uncaught ReferenceError: SafeLineAuth is not defined
3    at HTMLDocument.<anonymous> ((index):1:14063)
4Failed to load resource: the server responded with a status of 403 (Forbidden)
5Failed to load resource: the server responded with a status of 467 ()
头像

齐天大圣孙悟空

管理员

更新于 8 天前

0

0

最近遇到过好几次用户配置身份认证以后不显示登录框的问题,看起来都是同一个问题,就是 auth.js 无法加载导致的,从报错的 403 就能看出来。

这个问题是由于磁盘上 auth.js 这个文件的目录权限配置的不合理导致的

在雷池的安装目录里搜一下这个文件就能找到位置

1root@waf-ce-demo:~/safeline# find resources -name auth.js

然后就能发现这个文件位于 resources/nginx/safeline-static/auth.js,检查一下这个文件和他所在目录的权限

1ls -al resources/nginx/safeline-static/

权限最少也应该是 644,如果不是 644,那就执行下面这条命令把权限给加上

1chmod -R a+r resources/nginx/safeline-static/

然后应该就能解决了

头像
关注或联系我们
添加百川云公众号,移动管理云安全产品
咨询热线:
4000-327-707
百川公众号
百川公众号
百川云客服
百川云客服

Copyright ©2024 北京长亭科技有限公司
icon
京ICP备2024055124号-2