From c13f12d2d4638440039484be6847bbe5835a8f99 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Thu, 19 Mar 2026 22:28:31 -0400 Subject: [PATCH] fix 404 handling, ignore static/media --- .gitignore | 1 + nginx.conf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1377554..a0e3736 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.swp +static/media/ 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