From 908fdb265de8d6fafb21af60ca08a7a2636fed0e Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:08:36 +0000 Subject: [PATCH 1/3] update ngnix reverse-proxy example --- docs/reverse_proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md index f3b3aea732c7..daa042620cc4 100644 --- a/docs/reverse_proxy.md +++ b/docs/reverse_proxy.md @@ -63,7 +63,7 @@ server { server_name matrix.example.com; - location ~* ^(\/_matrix|\/_synapse\/client) { + location ~ ^(\/_matrix|\/_synapse\/client) { # note: do not add a path (even a single /) after the port in `proxy_pass`, # otherwise nginx will canonicalise the URI and cause signature verification # errors. From 97d53f2f3757ae6d728ee69674e42bcc5bdeaacf Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:10:37 +0000 Subject: [PATCH 2/3] Create 11680.doc --- changelog.d/11680.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/11680.doc diff --git a/changelog.d/11680.doc b/changelog.d/11680.doc new file mode 100644 index 000000000000..09399ad9d0e6 --- /dev/null +++ b/changelog.d/11680.doc @@ -0,0 +1 @@ +Correct the documentation for `nginx` to use a case-sensitive url pattern. Fixes an error introduced in v1.21.0. From f139710053e2da1e3aa1dda4a33f61162b29d666 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:31:12 +0000 Subject: [PATCH 3/3] remove backslashes --- docs/reverse_proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md index daa042620cc4..1a89da50fd97 100644 --- a/docs/reverse_proxy.md +++ b/docs/reverse_proxy.md @@ -63,7 +63,7 @@ server { server_name matrix.example.com; - location ~ ^(\/_matrix|\/_synapse\/client) { + location ~ ^(/_matrix|/_synapse/client) { # note: do not add a path (even a single /) after the port in `proxy_pass`, # otherwise nginx will canonicalise the URI and cause signature verification # errors.