[odrs-web/oscp] Disable logging



commit c389561c174ea65e6458cee731c481cd4415b5b1
Author: Andrea Veri <averi redhat com>
Date:   Mon Nov 12 20:06:27 2018 +0100

    Disable logging

 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 62aefb6..4e92e62 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -19,13 +19,14 @@ COPY odrs.gnome.org.conf /etc/apache2/conf.d/000-default.conf
 RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/httpd.conf
 RUN sed -i 's/Listen 443/Listen 8443/' /etc/apache2/conf.d/ssl.conf
 RUN sed -i 's/#LoadModule expires_module/LoadModule expires_module/' /etc/apache2/httpd.conf
+RUN sed -i 's/CustomLog/#CustomLog' /etc/apache2/httpd.conf
+RUN sed -i 's/ErrorLog/#ErrorLog' /etc/apache2/httpd.conf
 
 RUN groupadd -g 1001 odrs
 RUN useradd -u 1001 -g 1001 -d ${ODRS_HOME}/ -r -s /usr/sbin/nologin odrs
 
 RUN chown root:1001 /etc/apache2/conf.d && \
     chown root:1001 /etc/apache2/conf.d/000-default.conf && \
-    chown 1001:1001 -R /var/log/apache2 && \
     chmod 775 /etc/apache2/conf.d && chmod 664 /etc/apache2/conf.d/000-default.conf && \
     chown -R 1001:0 ${ODRS_HOME} && \
     chmod -R 664 ${ODRS_HOME} && \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]