# casjaysdevdocker/ampache - Apache vhost for Ampache # # DocumentRoot is the upstream-blessed `public/` subfolder of the Ampache # install (see https://ampache.org/docs/installation). ServerName casjaysdev-ampache DocumentRoot /usr/local/share/ampache/public Options FollowSymLinks AllowOverride All Require all granted # Ampache's REST API needs the Authorization header passed through. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 # Block .git and other dotfile dirs. Require all denied # Hand .php files to php-fpm over its unix socket. SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost" DirectoryIndex index.php index.html ErrorLog /data/logs/apache2/ampache_error.log CustomLog /data/logs/apache2/ampache_access.log combined