# Nuvio panel — admin console
# This directory is mapped to its own path (e.g. https://host/nuvio-admin/),
# separate from the API docroot.

# Route PHP to PHP-FPM 8.2+ (adjust the socket path to your php-fpm version).
<FilesMatch \.php$>
    SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost/"
</FilesMatch>

DirectoryIndex index.php
Options -Indexes

# Partials are include-only; never let them be requested directly.
<FilesMatch "^(guard|head|foot)\.php$">
    Require all denied
</FilesMatch>

# Never serve a stray database file or dotfiles from here.
<FilesMatch "\.(sqlite|sqlite-wal|sqlite-shm|db)$">
    Require all denied
</FilesMatch>
