File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ RUN set -ex \
8888
8989ENV APACHE_DOCUMENT_ROOT /
9090
91- RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
92- RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
93-
9491RUN { \
9592 echo 'DirectoryIndex disabled'; \
9693 echo 'DirectoryIndex index.html'; \
@@ -102,6 +99,9 @@ RUN { \
10299 } | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
103100 && a2enconf nodejs
104101
102+ RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
103+ RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
104+
105105# |--------------------------------------------------------------------------
106106# | Apache mod_rewrite
107107# |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ RUN set -ex \
8888
8989ENV APACHE_DOCUMENT_ROOT /
9090
91- RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
92- RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
93-
9491RUN { \
9592 echo 'DirectoryIndex disabled'; \
9693 echo 'DirectoryIndex index.html'; \
@@ -102,6 +99,9 @@ RUN { \
10299 } | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
103100 && a2enconf nodejs
104101
102+ RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
103+ RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
104+
105105# |--------------------------------------------------------------------------
106106# | Apache mod_rewrite
107107# |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ RUN set -ex \
8888
8989ENV APACHE_DOCUMENT_ROOT /
9090
91- RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
92- RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
93-
9491RUN { \
9592 echo 'DirectoryIndex disabled'; \
9693 echo 'DirectoryIndex index.html'; \
@@ -102,6 +99,9 @@ RUN { \
10299 } | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
103100 && a2enconf nodejs
104101
102+ RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
103+ RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
104+
105105# |--------------------------------------------------------------------------
106106# | Apache mod_rewrite
107107# |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -91,9 +91,6 @@ RUN set -ex \
9191
9292ENV APACHE_DOCUMENT_ROOT /
9393
94- RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
95- RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
96-
9794RUN { \
9895 echo 'DirectoryIndex disabled'; \
9996 echo 'DirectoryIndex index.html'; \
@@ -105,6 +102,9 @@ RUN { \
105102 } | tee "$APACHE_CONFDIR/conf-available/nodejs.conf" \
106103 && a2enconf nodejs
107104
105+ RUN sed -ri -e 's!/var/www/html!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
106+ RUN sed -ri -e 's!/var/www/!/var/www/html/${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
107+
108108# |--------------------------------------------------------------------------
109109# | Apache mod_rewrite
110110# |--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments