2
我創建了一個除default
以外的文件來配置我的laravel APP。文件名是「laravel
」。Laravel 5.5和nGinx:404除家庭以外的所有路由都未找到
的laravel文件:
server {
listen 80;
listen [::]:80;
root /home/user/var/www/laravel-blog/public;
index index.php index.html index.htm;
location/{
try_files $uri $uri/ /index.php?query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
}
location ~ /\.ht {
deny all;
}
}
有誰知道如何解決呢?謝謝!