From 019188b66d7dfd2bca2d4f50ff7e164193fc90ec Mon Sep 17 00:00:00 2001 From: myve Date: Thu, 10 Apr 2025 19:26:02 +0000 Subject: [PATCH] Add nginx block that adds trailing slash to URI --- build/run/installer.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/run/installer.sh b/build/run/installer.sh index 8f7771f..8a613fd 100755 --- a/build/run/installer.sh +++ b/build/run/installer.sh @@ -423,6 +423,11 @@ server { root /usr/share/webapps/roundcube; + # Add trailing slash to URI + location ~ ^(.+[^/])$ { + return 301 $scheme://$host$1/; + } + # Postfixadmin location ^~ /admin/ { proxy_pass http://127.0.0.1:12000/;