From: Christian Heller Date: Sun, 27 Aug 2023 02:51:47 +0000 (+0200) Subject: Improve status.plomlompom.com archive setup. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7B%20deck_id%20%7D%7D/edit?a=commitdiff_plain;h=f71f9bf25bef788af915b279f463cf35ff086a53;p=config Improve status.plomlompom.com archive setup. --- 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;