# ===========================================================================
#  MyRDM Panel - konfigurasi Apache
#  Berlaku di XAMPP (htdocs/myrdm-panel) maupun VPS dengan Apache.
#  Untuk Nginx, lihat SETUP.md bagian "Nginx".
# ===========================================================================

Options -Indexes
DirectoryIndex index.html
AddDefaultCharset UTF-8

# File yang tidak boleh diunduh langsung dari browser.
<FilesMatch "\.(sql|md|log|lock|ini|bak|sqlite)$">
    Require all denied
</FilesMatch>

<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set Referrer-Policy "same-origin"
    Header set X-Frame-Options "SAMEORIGIN"
</IfModule>

# Cache aset statis (CSS/JS/SVG) selama 7 hari.
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css "access plus 7 days"
    ExpiresByType application/javascript "access plus 7 days"
    ExpiresByType image/svg+xml "access plus 7 days"
</IfModule>
