329 Unstar Star 1.3K Fork 522

GVPAnyon / ThinkAdminPHP

NGINX代理控制器不存在问题

Closed
悟空请菩萨  Opened this issue

V6版本 为啥通过NGINX代理 域名访问报错 控制器不存在呢?

root "D:/phpserver/WWW/thinkadminv6/public";
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}

控制器不存在:app\index\controller\Error

126695 zoujingli 1578918740 total 2 participants

Comments (3)

126695 zoujingli 1578918740
Anyon 2020-08-03 10:52 owner

参考下tp官方文档的部署

悟空请菩萨 2020-08-03 16:52

参考下tp官方文档的部署

@Anyon 就是参考官方文档部署的,直接域名访问就报控制器不存在

如果域名后面加个 /admin 就正常不报错。。

126695 zoujingli 1578918740
Anyon 2020-08-03 17:38 owner
    if (!-e $request_filename) {
        rewrite ^(.*)$ /index.php$1 last;
    }

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
PHP
1
https://gitee.com/zoujingli/ThinkAdmin.git
git@gitee.com:zoujingli/ThinkAdmin.git
zoujingli
ThinkAdmin
ThinkAdmin

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542