From 5cf0190aeb64d9dc136df601971b192c2abeae61 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Fri, 28 Nov 2025 16:48:35 +0900 Subject: [PATCH] Fix: IR Valuation location priority with ^~ prefix --- server-nginx-default | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/server-nginx-default b/server-nginx-default index 94405ba..29ff3a6 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -93,7 +93,6 @@ server { location /ir-valuation { alias /home/admin/frontend-ir-valuation/dist/; try_files $uri $uri/ /ir-valuation/index.html; - index index.html; } # API endpoints -> route to gateway (host 8100 -> container 8000) @@ -209,6 +208,12 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # IR Valuation Frontend - must come before / for priority + location ^~ /ir-valuation { + alias /home/admin/frontend-ir-valuation/dist/; + try_files $uri $uri/ /ir-valuation/index.html; + } + # Main application static files location / { try_files $uri $uri/ /index.html; @@ -234,13 +239,6 @@ server { try_files $uri /goosefarm/index.html; } - # IR Valuation Frontend - location /ir-valuation { - alias /home/admin/frontend-ir-valuation/dist/; - try_files $uri $uri/ /ir-valuation/index.html; - index index.html; - } - # API endpoints -> route to gateway (host 8100 -> container 8000) location /api/ { proxy_pass http://localhost:8100;