代码拉取完成,页面将自动刷新
#0 [0]HttpException in Controller.php line 76
控制器不存在:app\controller\Index
伪静态配置正确
解决了 多应用驱动没加载: 在项目根目录 执行 php think service:discover
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
老哥,我的还是显示 控制器不存在:app\index\controller\admin\Php
nginx配置为
server {
listen 100;
listen [::]:100;
server_name 127.0.0.1;
root /var/www/html/Pear-Admin-Think/public/;
index index.html index.php;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
# With php-cgi (or other tcp sockets):
#fastcgi_pass 127.0.0.1:9000;
}
}
也执行了 php think service:discover。
跳转后的网址是 http://127.0.0.1:100/admin.php/login/index
想问一下,这是rewrite没成功嘛
登录 后才可以发表评论