Skip to content

Commit 7fc4f4b

Browse files
author
Julien Neuhart
committed
fixing apache document root in *conf
1 parent a21ddb7 commit 7fc4f4b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dockerfile.10-apache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ RUN set -ex \
8888

8989
ENV 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-
9491
RUN { \
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
# |--------------------------------------------------------------------------

Dockerfile.6-apache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ RUN set -ex \
8888

8989
ENV 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-
9491
RUN { \
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
# |--------------------------------------------------------------------------

Dockerfile.8-apache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ RUN set -ex \
8888

8989
ENV 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-
9491
RUN { \
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
# |--------------------------------------------------------------------------

utils/Dockerfile.blueprint

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ RUN set -ex \
9191

9292
ENV 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-
9794
RUN { \
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
# |--------------------------------------------------------------------------

0 commit comments

Comments
 (0)