发布于 8 天前
发布于 8 天前
Zrookie
更新于 8 天前
0
0
开启身份认证以后页面一片空白,这正常吗?
浏览器控制台报错:
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/
然后应该就能解决了