chore: 移动 nginx 伪静态配置到 source/docs 目录

This commit is contained in:
augushong
2026-06-01 20:17:38 +08:00
parent f5d019b260
commit d95c06da28
2 changed files with 10 additions and 5 deletions

View File

@@ -1,5 +0,0 @@
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}

View File

@@ -0,0 +1,10 @@
# Nginx 伪静态配置 - ThinkPHP
# 将此段内容添加到 nginx server 配置的 location / 块中即可。
# 如果使用 source/docker/ 下的 Docker 部署方式,已内置此规则,无需额外配置。
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}