From: Christian Heller Date: Sun, 27 Aug 2023 02:47:33 +0000 (+0200) Subject: Improve status.plomlompom.com setup. X-Git-Url: https://plomlompom.com/repos/index.html?a=commitdiff_plain;h=6c22729179ea7b044a6e1a7ebccdcad21482ea62;p=config Improve status.plomlompom.com 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 d16300f..02bc0b3 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 @@ -4,4 +4,9 @@ server { ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem; root /var/www/status.plomlompom.com/; + + # re-direct to .html endings + location ~ ^/(notice|users)/([^\.]*)/?$ { + rewrite ^/(notice|users)/([^\./]*)/?$ /$1/$2.html permanent; + } }