<VirtualHost *:80>

    ServerName element.example.com

    DocumentRoot /usr/share/matrix-element-web/html

    <Directory /usr/share/matrix-element-web/html>
        Require all granted
        AllowOverride All
        Options FollowSymLinks MultiViews
    </Directory>

    <Directory /etc/matrix-element-web>
        Require all granted
        AllowOverride All
        Options FollowSymLinks MultiViews
    </Directory>

    Header set X-Frame-Options SAMEORIGIN
    Header set X-Content-Type-Options nosniff
    Header set X-XSS-Protection "1; mode=block"
    Header set Content-Security-Policy "frame-ancestors 'self'"
    
</VirtualHost>