<VirtualHost *:8082>
    # DocumentRoot ist das Repo-Wurzelverzeichnis, damit sowohl
    # /mietwerte/... (PHP/MySQL-Anwendung) als auch /prototyp/... (statisches
    # HTML) ohne separate Services über einfache Verzeichnis-Pfade
    # erreichbar sind.
    DocumentRoot /var/www/html

    <Directory /var/www/html>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    # SQL-Dumps nie direkt ausliefern
    <FilesMatch "\.sql$">
        Require all denied
    </FilesMatch>

    # Security headers
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"

    # Logging
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
