Skip to content
Snippets Groups Projects
Commit 7b20314e authored by Andrey Postnikov's avatar Andrey Postnikov
Browse files

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

parent 993ad0a1
Branches
No related tags found
No related merge requests found
Pipeline #156724 passed
...@@ -52,7 +52,7 @@ RUN { \ ...@@ -52,7 +52,7 @@ RUN { \
COPY ./conf/apache2/vhost.conf /etc/apache2/sites-available/drupal.conf COPY ./conf/apache2/vhost.conf /etc/apache2/sites-available/drupal.conf
COPY ./apache2-foreground /usr/local/bin/ COPY ./apache2-foreground /usr/local/bin/
RUN a2enmod rewrite \ RUN a2enmod expires headers rewrite \
&& a2dissite 000-default.conf \ && a2dissite 000-default.conf \
&& a2ensite drupal && a2ensite drupal
......
...@@ -254,7 +254,7 @@ COPY ./apache2-foreground /usr/local/bin/ ...@@ -254,7 +254,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results # Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\ 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 # 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/ ...@@ -249,7 +249,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results # Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\ 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 # 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/ ...@@ -249,7 +249,7 @@ COPY ./apache2-foreground /usr/local/bin/
# Apache + PHP requires preforking Apache for best results # Apache + PHP requires preforking Apache for best results
RUN a2dismod mpm_event && a2enmod mpm_prefork &&\ 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 # 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