Skip to content

Commit

Permalink
Update apache2-foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
atouboulic authored Nov 23, 2023
1 parent 77273ca commit 70ec843
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions 2.4/alpine/apache2-foreground
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ for e in "${!APACHE_@}"; do
fi
done

# Listening port
# Greater than 1024 so we can run as a non-root user
APACHE_HTTP_PORT=${APACHE_HTTP_PORT:-8080}
APACHE_HTTPS_PORT=${APACHE_HTTPS_PORT:-8443}
sed -i "s/^Listen 80/Listen ${APACHE_HTTP_PORT}/g" /etc/apache2/httpd.conf

for f in /docker-entrypoint-init.d/*; do
[ -f "$f" ] || continue
case "$f" in
Expand All @@ -46,11 +52,5 @@ for f in /docker-entrypoint-init.d/*; do
echo
done

# Listening port
# Greater than 1024 so we can run as a non-root user
APACHE_HTTP_PORT=${APACHE_HTTP_PORT:-8080}
APACHE_HTTPS_PORT=${APACHE_HTTPS_PORT:-8443}
sed -i "s/^Listen 80/Listen ${APACHE_HTTP_PORT}/g" /etc/apache2/httpd.conf

exec httpd -DFOREGROUND "$@"

0 comments on commit 70ec843

Please sign in to comment.