Skip to content

Commit dfe588b

Browse files
committed
Correct examples in 'Changing DocumentRoot'
Replace single quotes with double quotes so that the variable is replaced
1 parent 0e406d3 commit dfe588b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php/variant-apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ FROM %%IMAGE%%:7.1-apache
3333

3434
ENV APACHE_DOCUMENT_ROOT /path/to/new/root
3535

36-
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
37-
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
36+
RUN sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/sites-available/*.conf
37+
RUN sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
3838
```
3939

4040
A similar technique could be employed for other Apache configuration options.

0 commit comments

Comments
 (0)