From a2155dc53078ac1f33d393321367c8c78bf894c9 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Thu, 19 Mar 2026 22:24:56 -0400 Subject: [PATCH] return 404 for missing files instead of index.html --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 968505f..170b36e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,7 +5,7 @@ server { # Clean URLs — serve index.html for directories location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ =404; } # Cache static assets aggressively