ServerName YOUR_DOMAIN DocumentRoot /path/to/pkgrepo SSLEngine On ErrorLog "/var/log/apache2/packages_error_log" CustomLog "/var/log/apache2/packages_access_log" common Require all granted Options +Indexes AllowOverride All # All IndexOptions, HeaderName, ReadmeName are managed in .htaccess Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem # ── Required Apache modules ─────────────────────────────────────────────────── # Check what's active: apache2ctl -M | grep -E 'autoindex|headers|php|proxy' # # a2enmod autoindex <- directory listings # a2enmod headers <- Cache-Control headers in .htaccess # # PHP -- pick one: # mod_php: a2enmod php8.4 # php-fpm: a2enmod proxy_fcgi setenvif && a2enconf php8.4-fpm # # systemctl reload apache2