部署fastadmin程序的时候后台登录界面404,前台正确
原因:伪静态的问题 fastadmin默认部署推荐的是thinkphp伪静态
- location ~* (runtime|application)/{
- return 403;
- }
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)[ DISCUZ_CODE_2 ]nbsp; /index.php?s=$1 last; break;
- }
- }
复制代码 改为:- location ~* (runtime|application)/{
- return 403;
- }
- location ^~ /hCLOyNErFa.php/ {
- if (!-e $request_filename){
- rewrite ^\/hCLOyNErFa\.php(.*)[ DISCUZ_CODE_3 ]nbsp; /hCLOyNErFa.php?s=$1 last; break;
- }
- }
- location / {
- if (!-e $request_filename){
- rewrite ^(.*)[ DISCUZ_CODE_3 ]nbsp; /index.php?s=$1 last; break;
- }
- }
复制代码
其中“hCLOyNErFa”对应的生成的后台网址名称 |