From 1be98c62bc32a5dbd627de0016ec9abde0622001 Mon Sep 17 00:00:00 2001 From: Tim Bendt Date: Sat, 29 Nov 2025 20:51:54 -0500 Subject: [PATCH] Fix nginx root location handling for index.html - Updated try_files directive to serve index.html for root requests - Changed from 'try_files / =404;' to 'try_files / /index.html =404;' - This fixes 403 error when requesting bare domain URL - Ensures proper fallback to index.html for root directory requests --- nginx.template.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.template.conf b/nginx.template.conf index 632c206..6b9ad70 100644 --- a/nginx.template.conf +++ b/nginx.template.conf @@ -47,7 +47,7 @@ http { # Static files for root directory location / { - try_files $uri $uri/ =404; + try_files $uri $uri/ /index.html =404; # Expires headers for static assets location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|bmp|webp|cur)$ {