Girish Ramakrishnan 9 роки тому
батько
коміт
af9ed97476
2 змінених файлів з 3 додано та 3 видалено
  1. 1 1
      Dockerfile
  2. 2 2
      apache2-wordpress.conf

+ 1 - 1
Dockerfile

@@ -20,7 +20,7 @@ RUN chown -R www-data:www-data /app/code
 
 # configure apache
 RUN rm /etc/apache2/sites-enabled/*
-RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/more",' -i /etc/apache2/apache2.conf
+RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
 RUN sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.conf
 
 RUN a2disconf other-vhosts-access-log

+ 2 - 2
apache2-wordpress.conf

@@ -1,8 +1,8 @@
 <VirtualHost *:8000>
     DocumentRoot /app/code
 
-    ErrorLog ${APACHE_LOG_DIR}/error.log
-    CustomLog ${APACHE_LOG_DIR}/access.log combined
+    ErrorLog "|/bin/cat"
+    CustomLog "|/bin/cat" combined
 
     <Directory /app/code/>
         Options +FollowSymLinks