]> prime8.dev >> repos - p8d.git/commitdiff
Handle www
authorDamian Myrda <monkey.damianek@gmail.com>
Sat, 21 Sep 2024 02:45:56 +0000 (21:45 -0500)
committerDamian Myrda <monkey.damianek@gmail.com>
Sat, 21 Sep 2024 02:45:56 +0000 (21:45 -0500)
caddy

diff --git a/caddy b/caddy
index 37549baea6d5f57c458de9842d3ef0993a9b1193..7297c5a4b1b3db009122c15ff2d846fa17155cc0 100644 (file)
--- a/caddy
+++ b/caddy
@@ -3,6 +3,10 @@
 }
 
 prime8.dev {
+    redir https://www.prime8.dev{uri} 301
+}
+
+www.prime8.dev {
        root * /web/
        file_server
        try_files {path} {path}.html