我创建了一个文件default
来配置我的 laravel APP。文件名为“ laravel
”。
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;
}
}
有谁知道如何解决它?谢谢!