소스 검색

use cat for piped logs

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