From 8301091cd800c34fd22095e571874a2b347de896 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Fri, 9 Jan 2026 11:14:28 +0800 Subject: [PATCH] =?UTF-8?q?chore(docker):=20=E6=9B=B4=E6=96=B0nginx?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/sites-enabled/app.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docker/nginx/sites-enabled/app.conf b/docker/nginx/sites-enabled/app.conf index c7b433b2f..552557af2 100644 --- a/docker/nginx/sites-enabled/app.conf +++ b/docker/nginx/sites-enabled/app.conf @@ -37,8 +37,19 @@ } # --- REWRITE-END --- + # --- 子目录 hwapp 及 hwappx 的配置,请勿删除,支持子目录网站,刷新,重定位 --- + location ~ ^/hwapp/(.*)$ { + try_files $uri $uri/ /hwapp/index.html; + } + + location ~ ^/hwappx/([^/]+)/(.*)$ { + try_files $uri $uri/ /hwappx/$1/index.html; + } + # --- 子目录 hwapp 及 hwappx 配置结束 --- + + #禁止访问的文件或目录 - location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md) + location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$ { return 404; }