laraveladmin 安装后输入 url 报 404
依次操作如下命令后:
composer create-project –prefer-dist laravel/laravel laravel-admin 5.5.*
composer require encore/laravel-admin
php artisan vendor:publish –provider=”Encore\Admin\AdminServiceProvider”
php artisan admin:install
在浏览器地址栏输入路由后报如下错误:
nginx配置如下:
server {
listen 8088;
server_name merchant.com.cn;
root /data0/tmp/merchant/public;
index index.php index.html index.htm;
client_max_body_size 8M;
client_body_buffer_size 128k;
fastcgi_intercept_errors on;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
请各位帮忙看看可能是什么原因呢?是还需要在代码中修改什么地方么?望指教!
推荐文章: