matrix: aliases will not work here, use redirects

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-08-30 16:26:58 -07:00
parent 3bdb267ad4
commit d65041c2c1
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,5 @@
Alias /.well-known/matrix/client /srv/web/fedora.im/.well-known-matrix-client-fedora-im
Alias /.well-known/matrix/server /srv/web/fedora.im/.well-known-matrix-server-fedora-im
DocumentRoot /srv/web/fedora.im/
RewriteEngine On
RewriteRule "^/.well-known/matrix/(.*)" "/srv/web/fedora.im/.well-known-matrix-$1-fedora-im" [L]
RewriteRule (.*) https://getfedora.org [NE]

View file

@ -1,2 +1,2 @@
Alias /.well-known/matrix/client /srv/web/.well-known-matrix-client-fedoraproject-org
Alias /.well-known/matrix/server /srv/web/.well-known-matrix-server-fedoraproject-org
RewriteEngine On
RewriteRule "^/.well-known/matrix/(.*)" "/srv/web/.well-known-matrix-$1-fedoraproject-org" [L]