diff --git a/build.sh b/build.sh
index 6fe755961dee3f42e558a840fdd5abdcc190ca68..a95fe50410a7f0a4348852615b24c53ebfa15b81 100755
--- a/build.sh
+++ b/build.sh
@@ -60,9 +60,12 @@ rsync -a /tmp/conf/ /etc/
 # Set the Apache syslog program
 APACHE_SYSLOG_TAG_DEFAULT=apache
 echo "export APACHE_SYSLOG_TAG=\${APACHE_SYSLOG_TAG:-${APACHE_SYSLOG_TAG_DEFAULT}}" >> /etc/apache2/envvars
+echo "export APACHE_LOG_LEVEL=\${APACHE_LOG_LEVEL:-warn}" >> /etc/apache2/envvars
 
 # Fix Apache error logging.
-sed -i -e 's@^ErrorLog.*$@ErrorLog "|/usr/bin/logger -p daemon.error -t \${APACHE_SYSLOG_TAG}"@' /etc/apache2/apache2.conf
+sed -i -e 's@^ErrorLog.*$@ErrorLog "|/usr/bin/logger -p daemon.error -t \${APACHE_SYSLOG_TAG}"@' \
+    -e 's,^LogLevel .*,LogLevel ${APACHE_LOG_LEVEL},' \
+    /etc/apache2/apache2.conf
 
 # Make APACHE_RUN_USER externally configurable (defaults to www-data if unset)
 # and fix some paths used by apache2 to be container-friendly.