versi nginx ialah 1.11 Selepas menambah blok pelayan berikut pada fail nginx.conf, nginx tidak boleh dimulakan.
#laravel-5-4-feature.com
server {
listen 80;
server_name laravel-5-4-feature.com;
charset utf-8;
location / {
root D:/wnmp/www/laravel-5-4-feature/public;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root D:/wnmp/www/laravel-5-4-feature/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sepatutnya bukan masalah
feature
Saya
nginx version: nginx/1.10.3
下测试无此问题。我升级下nginx
tengoktelah dinaik taraf kepada
nginx version: nginx/1.12.0
Konfigurasi ujian:
Hasil larian:
Sila berikan juga
khususnginx -t
maklumat ralat