From 2c12c05638d8cd083507cad64cdabccaf4464b6d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 28 Dec 2023 11:21:17 -0500 Subject: takemi: os: Add redirects for old blog /manuals URLs. --- takemi-os.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'takemi-os.scm') diff --git a/takemi-os.scm b/takemi-os.scm index 47c0422..5bac09e 100644 --- a/takemi-os.scm +++ b/takemi-os.scm @@ -147,6 +147,15 @@ (listen '("443 ssl")) (server-name '("www.dthompson.us")) (root "/var/www/blog") + ;; I used to check in the HTML output of + ;; manuals to my blog's git repo which was + ;; super gross. This rewrite rule keeps those + ;; links alive. + (locations + (list + (nginx-location-configuration + (uri "/manuals") + (body '("rewrite ^/manuals/([^/]+)/(.*) https://files.dthompson.us/docs/$1/latest/$2 permanent;"))))) (ssl-certificate letsencrypt-cert) (ssl-certificate-key letsencrypt-cert-key)) (nginx-server-configuration -- cgit v1.2.3