From 21f52150a6221476b97343e7759d2dfe95e09d5d Mon Sep 17 00:00:00 2001 From: Matthijs Date: Sat, 9 Mar 2024 17:37:54 +0100 Subject: [PATCH] Fixed the VirtualHost port --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ea1c7a2..db865e5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -65,7 +65,7 @@ unset rt # Change Apache port if needed from the default 80 to `WEBSERVER_PORT` (to run unprivileged or with a host network where no port mapping is available) if [[ -n "$WEBSERVER_PORT" ]]; then sed -i 's/Listen 80/Listen '"$WEBSERVER_PORT"'/' /etc/apache2/ports.conf - sed -i 's/VirtualHost *:80/VirtualHost *:'"$WEBSERVER_PORT"'/' /etc/apache2/sites-enabled/000-default.conf + sed -i 's/VirtualHost \*:80/VirtualHost \*:'"$WEBSERVER_PORT"'/' /etc/apache2/sites-enabled/000-default.conf fi # Only restart if one of the enmod commands succeeded