From 903fc5024fb58d4b04c11f961d02c28c776925a2 Mon Sep 17 00:00:00 2001 From: cabbagec Date: Wed, 18 Mar 2026 04:06:28 +0800 Subject: [PATCH] fix nginx alias path for deployment --- nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 9827229..7afeaac 100644 --- a/nginx.conf +++ b/nginx.conf @@ -22,7 +22,8 @@ location = /s { # --- Serve frontend index.html at /s/ --- location = /s/ { - alias /root/repo/urlshortener/static/; + root /root/repo/urlshortener/static; + try_files /index.html =404; } # --- Serve frontend static assets (CSS, JS, etc.) ---