Files
ampache/rootfs/tmp/etc/apache2/conf.d/ampache.conf
casjay c07f970f14
Some checks failed
ampache / release-ampache (push) Has been cancelled
🗃️ Removed the .claude/settings.local.json 🗃️
Dockerfile
.env.scripts
.gitattributes
.gitea/
.gitignore
LICENSE.md
README.md
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/05-custom.sh
rootfs/tmp/
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/etc/docker/bin/
rootfs/usr/local/etc/docker/init.d/
2026-05-12 20:05:22 -04:00

34 lines
1.0 KiB
Plaintext

# casjaysdevdocker/ampache - Apache vhost for Ampache
#
# DocumentRoot is the upstream-blessed `public/` subfolder of the Ampache
# install (see https://ampache.org/docs/installation).
<VirtualHost *:80>
ServerName casjaysdev-ampache
DocumentRoot /usr/local/share/ampache/public
<Directory /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
</Directory>
# Block .git and other dotfile dirs.
<DirectoryMatch "^/.*/\.(git|svn|hg)/">
Require all denied
</DirectoryMatch>
# Hand .php files to php-fpm over its unix socket.
<FilesMatch "\.php$">
SetHandler "proxy:unix:/run/php-fpm/php-fpm.sock|fcgi://localhost"
</FilesMatch>
DirectoryIndex index.php index.html
ErrorLog /data/logs/apache2/ampache_error.log
CustomLog /data/logs/apache2/ampache_access.log combined
</VirtualHost>