From fa74d8a36d542de6300512dd201da78f379f20b0 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 4 May 2024 10:11:02 +0100 Subject: [PATCH] Update static website URLs and redirects Swap order for main URLs, without www no redirects to with www Remove blog subdomain, make a page under normal site --- services/caddy.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/services/caddy.nix b/services/caddy.nix index 13735a6a..5cd2c5bc 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -4,17 +4,12 @@ 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/ - } + redir https://www.xenia.me.uk ''; - "blog.xenia.me.uk".extraConfig = '' + "www.xenia.me.uk".extraConfig = '' file_server * { - root /var/www/blog/ + root /var/www/xenia.me.uk/ } ''; };