home · contact · privacy
Add missed semicolon.
[config] / bookworm / etc_files / static_websites / etc / nginx / sites-available / status.plomlompom.com.nginx
index d16300f73f8c2542b2e1d0554a36650d2445644a..99c19d2cefe6fcc833041796d6b9e1bc2a6f3c84 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;
+    }
 }