时间:2021-07-01 10:21:17 帮助过:21人阅读
if (-f $request_filename) {
break;
}
# otherwise rewrite it
if (!-e $request_filename) {
rewrite ^(.+)$ /handler.php?_url=$1 last;
break;
}
if (-f $request_filename) {
break;
}
# otherwise rewrite it
if (!-e $request_filename) {
rewrite ^(.+)$ /handler.php?_url=$1 last;
break;
}
if (-f $request_filename) {
break;
}
# otherwise rewrite it
if (!-e $request_filename) {
rewrite ^(.+)$ /handler.php?_url=$1 last;
break;
}
你自己放错了位置,就不能怪别人了
location /{ index index.html index.htm index.php; if (-e $request_filename) { break; } if (!-e $request_filename) { rewrite ^(.+)$ /handler.php?_url=$1 last; break; } }
你自己放错了位置,就不能怪别人了
location /{ index index.html index.htm index.php; if (-e $request_filename) { break; } if (!-e $request_filename) { rewrite ^(.+)$ /handler.php?_url=$1 last; break; } }