Browse Source

Log to /tmp, revert last commit

2xB 2 years ago
parent
commit
8bc2de6f4a
2 changed files with 2 additions and 6 deletions
  1. 0 5
      Dockerfile
  2. 2 1
      docker/custom-httpd.conf

+ 0 - 5
Dockerfile

@@ -1,11 +1,6 @@
 FROM httpd:2.4-alpine
 
 COPY ./viewer /usr/local/apache2/htdocs/
-
 COPY ./docker/custom-httpd.conf /usr/local/apache2/conf/httpd.conf
 
-RUN chown -R www-data /usr/local/apache2/logs
-
 USER www-data
-
-CMD "id"

+ 2 - 1
docker/custom-httpd.conf

@@ -29,6 +29,7 @@
 # least PidFile.
 #
 ServerRoot "/usr/local/apache2"
+PidFile /tmp/httpd.pid
 
 #
 # Mutex: Allows you to set the mutex mechanism and mutex file directory
@@ -374,7 +375,7 @@ LogLevel warn
     # If you prefer a logfile with access, agent, and referer information
     # (Combined Logfile Format) you can use the following directive.
     #
-    CustomLog "logs/access_log" combined
+    CustomLog "/tmp/access_log" combined
 </IfModule>
 
 <IfModule alias_module>