添加伪静态

This commit is contained in:
小王 2024-09-13 00:27:32 +08:00
parent 37a9566011
commit 7ae8dce5e8
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ server {
root /var/www/html/public;
index index.php index.html index.htm index.nginx-debian.html;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location / {
try_files $uri $uri/ =404;
}