User Tools

Site Tools


howtos:log_format_including_x-forwarding-for

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:log_format_including_x-forwarding-for [25/08/2017 13:56] – created domingohowtos:log_format_including_x-forwarding-for [02/12/2018 21:34] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<file>
 +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
 +</file>
howtos/log_format_including_x-forwarding-for.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1