Skip to content

Commit

Permalink
fix(logs): Log internal + don't log _status (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
zflamig authored Jun 13, 2018
1 parent 2b20959 commit 4f3f4a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ RUN echo '<VirtualHost *:80>\n\
ErrorLog ${APACHE_LOG_DIR}/error.log\n\
LogLevel warn\n\
LogFormat "%{X-Forwarded-For}i %l %{X-UserId}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" aws\n\
SetEnvIf Host ".*" local\n\
SetEnvIf X-Forwarded-For "^..*" forwarded\n\
CustomLog ${APACHE_LOG_DIR}/access_log combined env=!forwarded\n\
SetEnvIf Request_URI "^/_status$" !forwarded !local\n\
CustomLog ${APACHE_LOG_DIR}/access.log combined env=local\n\
CustomLog ${APACHE_LOG_DIR}/access.log aws env=forwarded\n\
</VirtualHost>\n'\
>> /etc/apache2/sites-available/apache-indexd.conf
Expand Down

0 comments on commit 4f3f4a4

Please sign in to comment.