home · contact · privacy
Improve status.plomlompom.com setup.
[config] / bookworm / etc_files / static_websites / etc / nginx / sites-available / status.plomlompom.com.nginx
index d16300f73f8c2542b2e1d0554a36650d2445644a..02bc0b3c768bc60c47cbabef2a09f5dbcd840b5c 100644 (file)
@@ -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;
+    }
 }