hos maya yang dikonfigurasikan nginx+php7 tidak boleh mengakses projek laravel saya, dan halaman akses terus melaporkan kod ralat 500
Konfigurasi saya:
server {
listen 80;
listen [::]:80;
server_name demo.cn;
root /var/www/laravel-blog/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Tutorial sangat jelas: https://laravist.com/series/d...
Cuba semak fail log error.log nginx anda.