How to best configure IIS7 logging to capture "HTTP_X_FORWARDED_FOR" header
- by zeroasterisk
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)