From 0a138d08fcf0cdc01a5d14ed003d5071ed13cbba Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 14 Oct 2021 22:01:28 -0500 Subject: [PATCH] Finally get ta180m 404 to work without redirect --- ta180m.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ta180m.conf b/ta180m.conf index 258f4ea..4b5fcb8 100644 --- a/ta180m.conf +++ b/ta180m.conf @@ -9,7 +9,11 @@ server { root /srv/http/ta180m/public; index index.html; - error_page 404 404.html; + error_page 404 /404.html; + location = /404.html { + internal; + } + location / { try_files $uri $uri/ =404; }