From fae14a50835827a26a09c180c649adea714af0ae Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Sun, 19 Oct 2025 21:48:22 +0100 Subject: [PATCH] fix: Nginx routing for subdirectory index.html files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated try_files directive to check for index.html in subdirectories before falling back to root index.html. This fixes /sdk routing. Before: try_files $uri $uri/ /index.html; After: try_files $uri $uri/index.html /index.html; Now /sdk correctly serves /sdk/index.html instead of root index.html 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- nginx-site.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx-site.conf b/nginx-site.conf index 59ae2b1..3fcbd38 100644 --- a/nginx-site.conf +++ b/nginx-site.conf @@ -18,7 +18,7 @@ server { # Main location location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/index.html /index.html; } # Security headers