diff options
author | cyfraeviolae <cyfraeviolae> | 2024-07-03 15:49:11 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-07-03 15:49:11 -0400 |
commit | 4742568bacccb8b84e4f3fd3c23732fbaa5941f7 (patch) | |
tree | 52914fa98a3a586472b946a3ad8eb5c791d4ac16 | |
parent | 816d58a2559cb94c6b84998c0e62fc370887fe83 (diff) |
asl
-rw-r--r-- | cyfraeviolae.conf | 40 |
1 files changed, 40 insertions, 0 deletions
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; |