#!/bin/sh # Disable CustomLog, that is configured by default in upstream. sed -i -e 's:^\(\s*\)\(CustomLog\s\s*"logs/access_log"\):\1# Disabled by /docker-entrypoint.sh # \2:' \ /etc/httpd/conf/httpd.conf # Remove left-overs from an incomplete shutdown previously. rm -rf /run/httpd/* /tmp/httpd* if test "X${SERVER_ADMIN}" != "X" ; then set -- -c "ServerAdmin $SERVER_ADMIN" "$@" fi if test "X${LOG_LEVEL}" != "X" ; then set -- -c "LogLevel $LOG_LEVEL" "$@" fi exec /usr/sbin/httpd -DFOREGROUND "$@"