From 482e1b201c2b3ff115dd7b8f52dc786b41e676a7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 Jul 2022 18:08:39 +0300 Subject: fix(ops/www): redirect very old tazj.in feed URLs correctly at some point in the far past, there was an RSS feed at `/en/rss.xml`. It seems to still get a single hit or so every hour, which currently 404s. Change-Id: Ieb13c2c0232861a50a54bc2a4087d9ccb21185cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/5962 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- ops/modules/www/tazj.in.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ops/modules/www/tazj.in.nix') diff --git a/ops/modules/www/tazj.in.nix b/ops/modules/www/tazj.in.nix index de93ef57060c..a53ef904f573 100644 --- a/ops/modules/www/tazj.in.nix +++ b/ops/modules/www/tazj.in.nix @@ -14,6 +14,10 @@ serverAliases = [ "www.tazj.in" ]; extraConfig = '' + location = /en/rss.xml { + return 301 https://tazj.in/feed.atom; + } + ${depot.users.tazjin.blog.oldRedirects} location /blog/ { alias ${depot.users.tazjin.blog.rendered}/; -- cgit 1.4.1