PHP建站技术分享-从入门到精通_各类知识收集PHP建站技术分享-从入门到精通_各类知识收集PHP建站技术分享-从入门到精通_各类知识收集

QQ:420220301 微信/手机:150-3210-7690
当前位置:首页 > CMS教程 > Fastadmin

配置好服务后,后台除了可以进入到登录页面,其他页面都往前台的index/index页面跳,求大佬帮忙解决

管理员 2024-12-14
Fastadmin
64

转换的小程序云,登录后台成功或不成功都会直接跳转index/index,就算直接输入后台某个模块地址,也会跳转到index,不知道是nginx的配置问题还是哪里需要改,求大佬帮忙解决!!
image.png

server {

listen       80;server_name  localhost;root /app/public;index  index.html index.htm index.php;error_page  404              /404.html;error_page  500 502 503 504  /50x.html;location / {    index index.htm index.html index.php;    error_page 400 /error/400.html;    try_files $uri $uri/ /index.php?$args;    if (!-e $request_filename) {        rewrite ^(.+?.php)(/.+)$ /$1?s=$2 last;#        rewrite  ^(.*)$  /index.php?s=/$1  last;        break;    }}location ~* (runtime|application)/{    return 403;}location @rewrite {    set $static 0;    if  ($uri ~ .(css|js|jpg|jpeg|png|gif|ico|woff|eot|svg|css.map|min.map)$) {        set $static 1;    }}location ~ /Uploads/.*.php$ {    deny all;}  location ~ .php(.*)$ {        fastcgi_pass   127.0.0.1:9000;        fastcgi_index  index.php;        fastcgi_split_path_info  ^((?U).+.php)(/?.+)$;        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;        fastcgi_param  PATH_INFO  $fastcgi_path_info;        fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;        include        fastcgi_params;    }location ~ /.ht {    deny  all;}

}
这是nginx配置 不知道对不对



希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 iCMS, LeCMS, ClassCMS, Fastadmin, PbootCMS, PHPCMS, 易优CMS, YzmCMS, 讯睿CMS, 极致CMS, Wordpress, HkCMS, YznCMS, WellCMS, ThinkCMF, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。

相关推荐

扫码关注

qrcode

QQ交谈

回顶部