diff --git a/runner/main/modules/docker-php/docker-php.sh b/runner/main/modules/docker-php/docker-php.sh index 0589c3e..e9729d5 100644 --- a/runner/main/modules/docker-php/docker-php.sh +++ b/runner/main/modules/docker-php/docker-php.sh @@ -58,7 +58,7 @@ function docker-php_setup() { -v "${SHAREDDIR}":/shared \ "${DOCKER_PHP}" - # Update the document root. + # Update the document root to match required root. docker exec "${WEBSERVER}" bash -c "sed -ri -e 's@/var/www/html@${APACHE_DOCUMENT_ROOT}@g' /etc/apache2/sites-available/*.conf" docker exec "${WEBSERVER}" bash -c "sed -ri -e 's@/var/www/@${APACHE_DOCUMENT_ROOT}@g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf" docker exec "${WEBSERVER}" apachectl graceful