Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

update ngnix reverse-proxy example #11680

Merged
merged 3 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/11680.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct the documentation for `nginx` to use a case-sensitive url pattern. Fixes an error introduced in v1.21.0.
2 changes: 1 addition & 1 deletion docs/reverse_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ server {

server_name matrix.example.com;

location ~* ^(\/_matrix|\/_synapse\/client) {
location ~ ^(/_matrix|/_synapse/client) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may as well remove the backslashes here while we're at it - they are purely obfuscatory

# 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.
Expand Down