From 9395a46d4c57b8fedf344c6e102eb3679b562680 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Thu, 17 Jul 2025 23:53:44 +0900 Subject: [PATCH] fix: change nginx root to serve frontend-customer static files - Change root from /var/www/html to /home/admin/frontend-customer/dist - Add try_files for SPA routing support --- server-nginx-default | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server-nginx-default b/server-nginx-default index 739a7a0..5186238 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -38,7 +38,7 @@ server { # # include snippets/snakeoil.conf; - root /var/www/html; + root /home/admin/frontend-customer/dist; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; @@ -48,6 +48,7 @@ server { location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. + try_files $uri $uri/ /index.html; try_files $uri $uri/ =404; }