From 646eb50ebab5cde2c901939f4e81822e6f9c4c0b Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Fri, 14 Feb 2025 19:15:25 -0600 Subject: [PATCH] bert: Redirect all troop352.us URLs to / This is for backwards compatibility with the old site, which had e.g. the calendar at `/calendar/`, etc. --- bert/services/http/troop352.us.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bert/services/http/troop352.us.nix b/bert/services/http/troop352.us.nix index a34e233..bd92dd2 100644 --- a/bert/services/http/troop352.us.nix +++ b/bert/services/http/troop352.us.nix @@ -6,6 +6,12 @@ file_server root * /srv/www/troop352.us + @notRoot { + not path / + not file + } + redir @notRoot / + handle_errors { respond "{err.status_code} {err.status_text}" }