From 94a508d8aa10f50bf01643bcea97cf65f1300b56 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 5 Dec 2022 10:54:34 +0100 Subject: [PATCH] Print apache errors in the future to stderr Signed-off-by: Simon L --- Containers/apache/nextcloud.conf | 4 ++-- Containers/apache/supervisord.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Containers/apache/nextcloud.conf b/Containers/apache/nextcloud.conf index 7a0b46b2..e4523c14 100644 --- a/Containers/apache/nextcloud.conf +++ b/Containers/apache/nextcloud.conf @@ -3,8 +3,8 @@ Listen 8000 ServerName localhost # Add error log - CustomLog ${APACHE_LOG_DIR}/access.log combined - ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog /proc/self/fd/1 combined + ErrorLog /proc/self/fd/2 # PHP match diff --git a/Containers/apache/supervisord.conf b/Containers/apache/supervisord.conf index 90436e05..c8245619 100644 --- a/Containers/apache/supervisord.conf +++ b/Containers/apache/supervisord.conf @@ -9,8 +9,8 @@ logfile_backups=10 loglevel=error [program:apache] -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 +# stdout_logfile=/dev/stdout +# stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 command=apachectl -DFOREGROUND