From ca4f2d055a5a47007b3e48e4b6592e14467ab27d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 8 Apr 2024 11:46:33 +0100 Subject: [PATCH] Add redirect for www subdomain to main page --- services/caddy.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/caddy.nix b/services/caddy.nix index e2b824ca..13735a6a 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -4,6 +4,9 @@ enable = true; email = "evie@xenia.me.uk"; virtualHosts = { + "www.xenia.me.uk".extraConfig = '' + redir https://xenia.me.uk + ''; "xenia.me.uk".extraConfig = '' file_server * { root /var/www/landing/