summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-14 03:29:54 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-14 03:29:54 +0200
commit52c0571557fac5a99ea8e35563be1c1f6e4fc52c (patch)
treee5cb757d070da81b15b8f2702d800982be6b6ced
parent9922a7a93b93aa917887e601f4d5067eed12759c (diff)
downloadapache-52c0571557fac5a99ea8e35563be1c1f6e4fc52c.tar.gz
apache-52c0571557fac5a99ea8e35563be1c1f6e4fc52c.tar.bz2
apache-52c0571557fac5a99ea8e35563be1c1f6e4fc52c.tar.xz
apache-52c0571557fac5a99ea8e35563be1c1f6e4fc52c.zip
Adjust port in httpd.conf
-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.