diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 69c8826..ca2b2cd 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -17,7 +17,8 @@ if [[ "$1" == "davrods-start" ]]; then mkdir -p /var/log/apache2 touch /var/log/apache2/apache.access.log touch /var/log/apache2/apache.error.log - touch /var/log/apache2/other_vhosts_access.log + touch /var/log/apache2/davrods.access.log + touch /var/log/apache2/davrods.error.log # Remove default webpage and enable davrods rm -f /etc/apache2/sites-enabled/* @@ -34,6 +35,7 @@ if [[ "$1" == "davrods-start" ]]; then /etc/init.d/apache2 start # this script must end with a persistent foreground process - tail -F -n0 /var/log/apache2/access.log /var/log/apache2/error.log /var/log/apache2/other_vhosts_access.log + tail -Fq -n0 /var/log/apache2/access.log /var/log/apache2/error.log \ + /var/log/apache2/davrods.access.log /var/log/apache2/davrods.error.log fi diff --git a/docker/templates/davrods-vhost.conf.j2 b/docker/templates/davrods-vhost.conf.j2 index 74fd0c9..6f9e7d4 100644 --- a/docker/templates/davrods-vhost.conf.j2 +++ b/docker/templates/davrods-vhost.conf.j2 @@ -1,5 +1,7 @@ ServerName localhost + CustomLog /var/log/apache2/davrods.access.log combined + ErrorLog /var/log/apache2/davrods.error.log {% if DAVRODS_ENABLE_TICKETS != "0" %} SetEnvIfExpr "req_novary('Authorization') =~ /^Basic +(.*)/" DAVRODS_BASIC_CREDS64=$1