|
@@ -32,7 +32,8 @@ RUN chown -R www-data:www-data /app/code
|
|
# configure apache
|
|
# configure apache
|
|
RUN rm /etc/apache2/sites-enabled/*
|
|
RUN rm /etc/apache2/sites-enabled/*
|
|
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
|
|
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
|
|
-COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
|
|
|
|
|
|
+COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf.template
|
|
|
|
+RUN ln -sf /run/wordpress/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
|
|
|
|
|
|
RUN a2disconf other-vhosts-access-log
|
|
RUN a2disconf other-vhosts-access-log
|
|
ADD apache/wordpress.conf /etc/apache2/sites-enabled/wordpress.conf
|
|
ADD apache/wordpress.conf /etc/apache2/sites-enabled/wordpress.conf
|