From f71f9bf25bef788af915b279f463cf35ff086a53 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 27 Aug 2023 04:51:47 +0200 Subject: [PATCH] Improve status.plomlompom.com archive setup. --- .../etc/nginx/sites-available/status.plomlompom.com.nginx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx b/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx index 02bc0b3..5dda86c 100644 --- a/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx +++ b/bookworm/etc_files/static_websites/etc/nginx/sites-available/status.plomlompom.com.nginx @@ -5,6 +5,10 @@ server { ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem; root /var/www/status.plomlompom.com/; + location = / { + return 301 /users/plomlompom.html + } + # re-direct to .html endings location ~ ^/(notice|users)/([^\.]*)/?$ { rewrite ^/(notice|users)/([^\./]*)/?$ /$1/$2.html permanent; -- 2.30.2