Skip to content
Snippets Groups Projects
Commit 9c756fcb authored by Andrey Postnikov's avatar Andrey Postnikov Committed by Andrey Postnikov
Browse files

Issue #3226187 by effulgentsia, andypost: Enable mod_headers and mod_expires on Apache

(cherry picked from commit 7b20314e)
parent 88466756
Branches
No related tags found
No related merge requests found
Pipeline #156801 passed
......@@ -52,7 +52,7 @@ RUN { \
COPY ./conf/apache2/vhost.conf /etc/apache2/sites-available/drupal.conf
COPY ./apache2-foreground /usr/local/bin/
RUN a2enmod rewrite \
RUN a2enmod expires headers rewrite \
&& a2dissite 000-default.conf \
&& a2ensite drupal
......
......@@ -254,7 +254,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\
a2enmod rewrite &&\
a2enmod expires headers rewrite &&\
\
# PHP files should be handled by PHP, and should be preferred over any other file type
{ \
......
......@@ -249,7 +249,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\
a2enmod rewrite &&\
a2enmod expires headers rewrite &&\
\
# PHP files should be handled by PHP, and should be preferred over any other file type
{ \
......
......@@ -249,7 +249,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\
a2enmod rewrite &&\
a2enmod expires headers rewrite &&\
\
# PHP files should be handled by PHP, and should be preferred over any other file type
{ \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment