將下面這句代碼寫入到Nignx配置中
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
將下面這句代碼寫入到Nignx配置中
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
windows系統本地使用nginx服務,偶爾會出現項目接口報異常錯誤或者直接404, 解決辦法如下: 配置下vhost.conf… server { listen 80; server