From 3f1906ed29c9a185895bb9b7c0a0e7a2a3755705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 27 Sep 2024 15:40:10 +0200 Subject: [PATCH] fix trailing slash handling for distribution redir --- api/docker/caddy/Caddyfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/docker/caddy/Caddyfile b/api/docker/caddy/Caddyfile index 3c98b023..b7050eb4 100644 --- a/api/docker/caddy/Caddyfile +++ b/api/docker/caddy/Caddyfile @@ -9,7 +9,8 @@ log { output file /var/log/caddy/access.log } -redir /docs/distribution /docs/symfony +@distribution path_regexp ^/docs/distribution(?:/?)$ +redir @distribution /docs/symfony/ @docsroot path_regexp ^/docs(/?)$ redir @docsroot /docs/symfony/