From 52c0571557fac5a99ea8e35563be1c1f6e4fc52c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 14 Aug 2019 03:29:54 +0200 Subject: Adjust port in httpd.conf --- 2.4/docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2.4/docker-entrypoint.sh b/2.4/docker-entrypoint.sh index 4430d20..117f63c 100755 --- a/2.4/docker-entrypoint.sh +++ b/2.4/docker-entrypoint.sh @@ -14,6 +14,11 @@ set -e # Just in case this environment variable has gone missing. HTTPD_PREFIX="${HTTPD_PREFIX:-/usr/local/apache2}" +# Configure port +sed -e "s|Listen .*|Listen 8080|" \ + -i "$HTTPD_PREFIX"/conf/httpd.conf + + # Configure vhosts. if [ "x$SERVER_NAMES" != "x" ]; then # Use first domain as Apache ServerName. -- cgit v1.2.1