From dfe588bf37c9c3ed1025ef4fc227442175c1bcd1 Mon Sep 17 00:00:00 2001 From: Marco Ziesing Date: Wed, 12 Nov 2025 11:22:13 +0100 Subject: [PATCH] Correct examples in 'Changing DocumentRoot' Replace single quotes with double quotes so that the variable is replaced --- php/variant-apache.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/variant-apache.md b/php/variant-apache.md index 9537eadb291b..ed8e9816b332 100644 --- a/php/variant-apache.md +++ b/php/variant-apache.md @@ -33,8 +33,8 @@ FROM %%IMAGE%%:7.1-apache ENV APACHE_DOCUMENT_ROOT /path/to/new/root -RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf -RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf +RUN sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/sites-available/*.conf +RUN sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf ``` A similar technique could be employed for other Apache configuration options.