Print apache errors in the future to stderr

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-12-05 10:54:34 +01:00
parent 38f9cb2046
commit 94a508d8aa
2 changed files with 4 additions and 4 deletions

View file

@ -3,8 +3,8 @@ Listen 8000
ServerName localhost ServerName localhost
# Add error log # Add error log
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog /proc/self/fd/1 combined
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog /proc/self/fd/2
# PHP match # PHP match
<FilesMatch "\.php$"> <FilesMatch "\.php$">

View file

@ -9,8 +9,8 @@ logfile_backups=10
loglevel=error loglevel=error
[program:apache] [program:apache]
stdout_logfile=/dev/stdout # stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 # stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
command=apachectl -DFOREGROUND command=apachectl -DFOREGROUND