Skip to content

Commit

Permalink
Merge pull request #4055 from edwardando/patch-1
Browse files Browse the repository at this point in the history
add 302 redirect option as well as reverse-proxy
  • Loading branch information
spantaleev authored Feb 11, 2025
2 parents 00bde4a + 6dfe5d5 commit 427585f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuring-well-known.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ This is relatively easy to do and possibly your only choice if you can only host

This option is less fragile and generally better.

On the base domain's server (e.g. `example.com`), you can set up reverse-proxying, so that any access for the `/.well-known/matrix` location prefix is forwarded to the Matrix domain's server (e.g. `matrix.example.com`).
On the base domain's server (e.g. `example.com`), you can set up reverse-proxying (or simply a 302 redirect), so that any access for the `/.well-known/matrix` location prefix is forwarded to the Matrix domain's server (e.g. `matrix.example.com`).

With this method, you **don't need** to add special HTTP headers for [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) reasons (like `Access-Control-Allow-Origin`), because your Matrix server (where requests ultimately go) will be configured by this playbook correctly.

Expand Down

0 comments on commit 427585f

Please sign in to comment.