From 7fd79875781bf968e80ea302545d65cd9504c25e Mon Sep 17 00:00:00 2001 From: Marco Ziesing Date: Wed, 12 Nov 2025 11:07:49 +0100 Subject: [PATCH] Correct examples in 'Changing DocumentRoot' Replace single quotes with double quotes --- php/README.md | 4 ++-- php/variant-apache.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/README.md b/php/README.md index ff586dddcde1..a04f338c7352 100644 --- a/php/README.md +++ b/php/README.md @@ -459,8 +459,8 @@ FROM php: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. 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.