1Panel/cmd/server/nginx_conf/rewrite/thinkphp.conf

8 lines
149 B
Plaintext
Raw Normal View History

2023-04-14 08:01:06 +00:00
location ~* (runtime|application)/ {
return 403;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}