From 0ea8beed093750d099fbde8d9bc3d625f1483e59 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Mon, 9 Mar 2026 16:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index e94b9bb..0118146 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,11 +17,10 @@ http { server { listen 80; server_name localhost; - # location = /scriptflow { - # return 301 /scriptflow/; - # } - location ^~ /scriptflow/ { - rewrite ^/scriptflow/(.*)$ /$1 break; + location = /scriptflow { + return 301 /scriptflow/; + } + location /scriptflow/ { root /app; index index.html;