From b4dc3bd51b45d1343cdf486e4cb54e5e92295534 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Jul 2023 10:56:17 +0200 Subject: Add listener for www --- Caddyfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Caddyfile b/Caddyfile index f69b86c..576a1d0 100644 --- a/Caddyfile +++ b/Caddyfile @@ -8,6 +8,11 @@ metrics } +http://www.alanpearce.eu { + header Cache-Control max-age=31536000 + redir https://alanpearce.eu{uri} +} + http://alanpearce.eu { root * {$SITE_ROOT} file_server { -- cgit 1.4.1