From d115363115cd519561598268fd18951d72ce83cf Mon Sep 17 00:00:00 2001 From: luo Date: Fri, 3 Jul 2026 10:50:40 +0800 Subject: [PATCH] fix: h5 --- docker/nginx.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 8445fc3..807571c 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -18,7 +18,11 @@ server { } location /h5/ { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /h5/index.html; + } + + location = /h5 { + return 301 /h5/; } location = / { @@ -30,6 +34,4 @@ server { add_header Cache-Control "public, immutable"; access_log off; } - - error_page 404 /index.html; }