DocumentRoot /srv/web/fedora.im/

<LocationMatch /srv/web/fedora.im/well-known*>
	ForceType application/json
</LocationMatch>

<IfModule mod_headers.c>
   Header add Access-Control-Allow-Origin "*"
</IfModule>

RewriteEngine On
RewriteRule "^/.well-known/matrix/(.*)" "/srv/web/fedora.im/.well-known-matrix-$1-fedora-im" [L]
RewriteRule "^/fedora_logo.png" "/srv/web/fedora.im/fedora_logo.png" [L]
RewriteRule "^/fedora_welcome.png" "/srv/web/fedora.im/fedora_welcome.png" [L]
RewriteRule (.*) https://chat.fedoraproject.org [NE]
