From 6c22729179ea7b044a6e1a7ebccdcad21482ea62 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 27 Aug 2023 04:47:33 +0200 Subject: [PATCH] Improve status.plomlompom.com setup. --- .../etc/nginx/sites-available/status.plomlompom.com.nginx | 5 +++++ 1 file changed, 5 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 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; + } } -- 2.30.2