diff options
author | Vincent Ambo <mail@tazj.in> | 2022-07-19T15·08+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-07-19T15·14+0000 |
commit | 482e1b201c2b3ff115dd7b8f52dc786b41e676a7 (patch) | |
tree | 96d111981743cf832debc13f2c5534cfa1a7cad0 /ops/modules/www | |
parent | 5d65d8e03a2649f896ccc1ac539807111fbc1bdf (diff) |
fix(ops/www): redirect very old tazj.in feed URLs correctly r/4306
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 <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'ops/modules/www')
-rw-r--r-- | ops/modules/www/tazj.in.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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}/; |