From 79f6d3550a14cacadacbb47d1d1ccf9d06f73158 Mon Sep 17 00:00:00 2001
From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Date: Tue, 4 Jan 2022 22:31:45 +0000
Subject: [PATCH] update ngnix reverse-proxy example (#11680)

this should not be a case-insensitive match.
---
 changelog.d/11680.doc | 1 +
 docs/reverse_proxy.md | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 changelog.d/11680.doc

diff --git a/changelog.d/11680.doc b/changelog.d/11680.doc
new file mode 100644
index 0000000000..09399ad9d0
--- /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.
diff --git a/docs/reverse_proxy.md b/docs/reverse_proxy.md
index f3b3aea732..1a89da50fd 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.
-- 
GitLab