diff --git a/httpd-foreground b/httpd-foreground index e109f0e..b258bf4 100644 --- a/httpd-foreground +++ b/httpd-foreground @@ -4,4 +4,5 @@ set -e # Apache gets grumpy about PID files pre-existing rm -f /run/apache2/httpd.pid -exec httpd -DFOREGROUND "$@" \ No newline at end of file +source /etc/apache2/envvars +exec apache2 -DFOREGROUND "$@" \ No newline at end of file diff --git a/httpd-foreground alpine b/httpd-foreground alpine new file mode 100644 index 0000000..e109f0e --- /dev/null +++ b/httpd-foreground alpine @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +# Apache gets grumpy about PID files pre-existing +rm -f /run/apache2/httpd.pid + +exec httpd -DFOREGROUND "$@" \ No newline at end of file