2
私のlaravel APPを設定するためにdefault
以外のファイルを作成しました。ファイル名は "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;
}
}
は、誰もがそれを解決する方法を知っていますか?ありがとう!