X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=bookworm%2Fetc_files%2Fstatus.plomlompom.com%2Fetc%2Fnginx%2Fsites-available%2Fstatus.plomlompom.com.nginx;fp=bookworm%2Fetc_files%2Fstatus.plomlompom.com%2Fetc%2Fnginx%2Fsites-available%2Fstatus.plomlompom.com.nginx;h=99c19d2cefe6fcc833041796d6b9e1bc2a6f3c84;hb=174acd1989d140882900b51dac88a54283e0333f;hp=0000000000000000000000000000000000000000;hpb=7ff50c1c165377ceb385e4087d3bbff05f0b7032;p=config diff --git a/bookworm/etc_files/status.plomlompom.com/etc/nginx/sites-available/status.plomlompom.com.nginx b/bookworm/etc_files/status.plomlompom.com/etc/nginx/sites-available/status.plomlompom.com.nginx new file mode 100644 index 0000000..99c19d2 --- /dev/null +++ b/bookworm/etc_files/status.plomlompom.com/etc/nginx/sites-available/status.plomlompom.com.nginx @@ -0,0 +1,16 @@ +server { + listen 443 ssl; + server_name REPLACE_fqdn_ECALPER; + 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; + } +}