From 7ae8dce5e8a41c0ba1069041ff1b49fe20e1ec55 Mon Sep 17 00:00:00 2001 From: anfu Date: Fri, 13 Sep 2024 00:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=AA=E9=9D=99=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/default.conf b/default.conf index dccf1cd..607eeae 100644 --- a/default.conf +++ b/default.conf @@ -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; }