How to best configure IIS7 logging to capture "HTTP_X_FORWARDED_FOR" header

Posted by zeroasterisk on Server Fault See other posts from Server Fault or by zeroasterisk
Published on 2010-06-09T16:59:58Z Indexed on 2010/06/09 17:02 UTC
Read the original article Hit count: 226

Filed under:
|
|
|
|

We have IIS7 servers sitting behind an nginx reverse proxy.

The reverse proxy is sending the standard "HTTP_X_FORWARDED_FOR" header with the visitor IP address, but IIS7 logging is only logging the IP address of the nginx server (which makes sense, but it's not what I want).

How can I tell IIS7 to instead log the "HTTP_X_FORWARDED_FOR" header (or additionally log it)?

(note: I'm a linux admin, not a windows one, so explicit instructions & links are sincerely appreciated)

© Server Fault or respective owner

Related posts about iis7

Related posts about nginx