Skip to content

Commit

Permalink
added apache log to stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Nov 27, 2023
1 parent 43e29f8 commit 7213152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN cd /var/www/openatlas && cp install/entrypoint.sh /entrypoint.sh &&\
dos2unix /entrypoint.sh &&\
sed -i 's~^Listen.*~Listen 8080~' /etc/apache2/ports.conf &&\
sed -i 's~^<VirtualHost \*:80>~<VirtualHost *:8080>~' /etc/apache2/sites-available/000-default.conf &&\
sed -i 's~ServerName.*~~' /etc/apache2/sites-available/000-default.conf
sed -i 's~ServerName.*~~' /etc/apache2/sites-available/000-default.conf &&\
sed -i 's~</VirtualHost>~ErrorLogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"function\" : \"[%-m:%l]\" , \"process\" : \"[pid %P:tid %T]\" , \"message\" : \"%M\" ,\ \"referer\"\ : \"%{Referer}i\" },"\nLogFormat "{ \"time\":\"%{%Y-%m-%d}tT%{%T}t.%{msec_frac}tZ\", \"process\":\"%D\", \"filename\":\"%f\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }," combined\nCustomLog /dev/stdout combined\n</VirtualHost>~' /etc/apache2/sites-available/000-default.conf
USER www-data
RUN cd /var/www/openatlas &&\
pip3 install calmjs &&\
Expand Down

0 comments on commit 7213152

Please sign in to comment.