From c62947aec12095bf8a6d71a84163fd8466664dfb Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 23 Jan 2022 11:53:07 -0700 Subject: [PATCH] Update reverse.rst updated the external proxy location pattern and added a note: do not add a / at the end --- docs/reverse.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reverse.rst b/docs/reverse.rst index 6cde55f2..8d0dcc8e 100644 --- a/docs/reverse.rst +++ b/docs/reverse.rst @@ -66,7 +66,7 @@ Because the admin interface is served as ``/admin``, the Webmail as ``/webmail`` server { # [...] here goes your standard configuration - location ~ ^/(admin|sso|static|webdav|webmail)/ { + location ~ ^/(admin|sso|static|webdav|webmail) { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr proxy_pass https://localhost:8443; @@ -89,6 +89,8 @@ Because the admin interface is served as ``/admin``, the Webmail as ``/webmail`` } } +.. note:: Please don’t add a ``/`` at the end of the location pattern or all your redirects will fail with 404 because the ``/`` would be missing, and you would have to add it manually to move on + .. code-block:: docker #mailu.env file