mirror of
https://github.com/casjaysdevdocker/ampache
synced 2026-05-19 08:47:49 -04:00
Some checks failed
ampache / release-ampache (push) Has been cancelled
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/
34 lines
1.0 KiB
Plaintext
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>
|