home · contact · privacy
Improve status.plomlompom.com setup.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 27 Aug 2023 02:47:33 +0000 (04:47 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 27 Aug 2023 02:47:33 +0000 (04:47 +0200)
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;
+    }
 }