我正在使用带有 Ubuntu、NGINX 和 php-fpm 的 vagrant 运行 laravel 站点,在我的站点上一切正常,直到它没有。我得到典型的“没有指定输入文件”错误,唯一的事情是它是随机的。如果我等待一段时间或继续发送请求,它最终会清除。
这是我的配置:
server {
listen 80;
server_name site.dev;
root /var/www/site.dev/public;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
#root html;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}