Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Jan 5, 2025
1 parent 9d91dd9 commit ea857c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webtrees/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ RUN \
&& cp -rf /var/* /var2/ \
&& chown -R www-data:www-data /var2/www/webtrees \
# Allow healthcheck
&& for files in /etc/apache2/sites-*/*.conf; do sed -i "/<Directory/i\ BrowserMatchNoCase ^healthcheck nolog" "$files"; done \
&& for file in /etc/apache2/sites-*/*.conf; do \
sed -i '/<VirtualHost/a\\n # Match requests with the custom User-Agent "HealthCheck"\\n SetEnvIf User-Agent "HealthCheck" dontlog\\n # Exclude matching requests from access logs\\n CustomLog /var/log/apache2/access.log combined env=!dontlog' "$file"; done

##################
# 3 Install apps #
Expand Down

0 comments on commit ea857c7

Please sign in to comment.