summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x2.4/docker-entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
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.