User Tools

Site Tools


howtos:log_format_including_x-forwarding-for
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy

SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded

CustomLog /var/log/apache2/access.log combined env=!forwarded
CustomLog /var/log/apache2/access.log proxy env=forwarded
howtos/log_format_including_x-forwarding-for.txt · Last modified: 02/12/2018 20:34 by 127.0.0.1