From e9342cbf473ae06a9f3e6b1b712aaeb9eb3d6958 Mon Sep 17 00:00:00 2001 From: Zirui Cai Date: Wed, 27 Nov 2024 21:41:58 +0800 Subject: [PATCH] Update nginx.conf --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index 025e961..20eb3cd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,6 +8,13 @@ server { try_files $uri $uri/ /index.html; } + location /zh { + rewrite ^/zh(/.*)$ $1 break; + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; + } + location = 50x.html { root /usr/share/nginx/html; }