From d8f17941d58eaa4bc4e0843483d233dd2cb9254b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B7=9D?= Date: Mon, 9 Mar 2026 10:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=89=8B=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/fileserver/default.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/base/fileserver/default.conf b/base/fileserver/default.conf index ae4ae6f..5bb6e5e 100644 --- a/base/fileserver/default.conf +++ b/base/fileserver/default.conf @@ -5,16 +5,18 @@ server { #access_log /var/log/nginx/host.access.log main; + location /mobile/ { + root /usr/local/app/mobile/; + try_files $uri /mobile.html; + index mobile.html mobile.htm; + } + location / { root /usr/local/app/pc; try_files $uri /index.html; index index.html index.htm; } - location /mobile { - root /usr/local/app/mobile; - try_files $uri /index.html; - index index.html index.htm; - } + error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html;