From 316e96e06f1a981922a282bc2764450dc1accdd9 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Tue, 19 Sep 2023 11:43:37 -0400 Subject: redirect http --- cyfraeviolae.conf | 5 +++++ local.conf | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/cyfraeviolae.conf b/cyfraeviolae.conf index 5b1e190..6de73b9 100644 --- a/cyfraeviolae.conf +++ b/cyfraeviolae.conf @@ -1,5 +1,10 @@ server { listen 80 default_server; + server_name _; + return 301 https://$host$request_uri; +} + +server { listen 443 ssl default_server; ssl_certificate /etc/letsencrypt/live/cyfraeviolae.org/fullchain.pem; diff --git a/local.conf b/local.conf index 8cdc8b1..0bb69b7 100644 --- a/local.conf +++ b/local.conf @@ -27,6 +27,10 @@ http { alias /home/sy/code/site/telechromy/; } + location /translation-modality { + alias /home/sy/code/site/translation-modality/; + } + location /countervisual { alias /home/sy/code/site/countervisual/; } -- cgit v1.2.3