I created a file other than the default
to configure my laravel APP. The file name is "laravel
".
The laravel file:
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;
}
}
Does anyone know how to solve it? Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire