venerdì 19 dicembre 2008

X-Forwarded-For

NOTE: Following instruction are for apache >= 2.0


If you need to see the client real IP behind a reverse proxy non transparent connecting to your web server you have to play with LogFormat.

You have to ensure to have the mod_proxy enabled and to configure the LogFormat string.


By default the string is composed:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

To inspect in the header http for the client real ip address add the following:

%{X-Forwarded-For}i

Nessun commento:

Posta un commento