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 [d/m/Y H:i] (current)
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: d/m/Y H:i (external edit)