summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cyfraeviolae.conf40
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;