home · contact · privacy
Improve status.plomlompom.com archive setup.
[config] / bookworm / etc_files / static_websites / etc / nginx / sites-available / status.plomlompom.com.nginx
index d16300f73f8c2542b2e1d0554a36650d2445644a..5dda86c8d254fba2526fe10ebdc3529631685804 100644 (file)
@@ -4,4 +4,13 @@ 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/;
+
+    location = / {
+        return 301 /users/plomlompom.html
+    } 
+
+    # re-direct to .html endings
+    location ~ ^/(notice|users)/([^\.]*)/?$ {
+        rewrite ^/(notice|users)/([^\./]*)/?$ /$1/$2.html permanent;
+    }
 }