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.