Browse Source

apache to stdout

boyska 5 years ago
parent
commit
3bd64b905f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -3,4 +3,6 @@ FROM ulsmith/alpine-apache-php7
 COPY ./ /app/public/
 
 RUN mkdir -p /var/cache/rss-bridge/ && \
-        chown -R apache:root /app/public /var/cache/rss-bridge/
+        chown -R apache:root /app/public /var/cache/rss-bridge/ && \
+        sed -i -r 's@ErrorLog .*@ErrorLog "/dev/stdout"@i' /etc/apache2/httpd.conf &&\
+        echo 'TransferLog "/dev/stdout"' >> /etc/apache2/httpd.conf