From 4742568bacccb8b84e4f3fd3c23732fbaa5941f7 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Jul 2024 15:49:11 -0400 Subject: asl --- cyfraeviolae.conf | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index 44fc340..7bce20e 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -123,6 +123,46 @@ server { ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } +# server { +# if ($host = quietreading.org) { +# return 301 https://$host$request_uri; +# } # managed by Certbot + + +# listen 80; +# server_name quietreading.org; +# return 404; # managed by Certbot + + +# } + +server { + listen 80; + server_name aseemslegit.com; + location ~ /\. { + deny all; + } + + location / { + root /srv/aseemslegit; + expires 1h; + add_header Cache-Control "public"; + } + + error_page 404 /404.html; + location = /404.html { + root /srv/aseemslegit; + expires 1h; + add_header Cache-Control "public"; + } + + # listen 443 ssl; # managed by Certbot + # ssl_certificate /etc/letsencrypt/live/quietreading.org/fullchain.pem; # managed by Certbot + # ssl_certificate_key /etc/letsencrypt/live/quietreading.org/privkey.pem; # managed by Certbot + # include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot +} + server { if ($host = quietreading.org) { return 301 https://$host$request_uri; -- cgit v1.2.3