Forum Discussion
MK_62657
Nimbostratus
Feb 13, 2008XforwardedFor not working properly for IBM HTTP Server/Apache
Hello:
Anyone load balancing IBM_HTTP_SERVER/1.3.26.2 (Apache/1.3.26) and using the X-Forwarded-For option to obtain the source IP information?
I set it up as per the article SOL4...
hoolio
Cirrostratus
Feb 13, 2008Hi,
The second line looks like it matches the LogFormat directive you've posted per the apache doc for mod_log_config (Click here). I'm not sure how you're getting the first line though.
If you take a look at the apache doc you can find the definitions for the abbreviations. The first field is the canonical name of the web server, followed by the value of the x-forwarded-for header value, the remote logname, etc. If you want the XFF header value logged first, you should be able to move the %{X-Forwarded-For} to the beginning of the field list.
Can you give this a shot?
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
