How To Log The X-Forwarded-For HTTP Header Content In the Oracle iPlanet Web Server Access Log

(Doc ID 1403073.1)

Last updated on SEPTEMBER 22, 2017

Applies to:

Oracle iPlanet Web Server - Version 6.1 to 7.0 [Release 6.1 to 7.0]
Information in this document applies to any platform.
***Checked for relevance on 05-Aug-2013***

Goal

The X-Forwarded-For HTTP header contains the originating IP address of a client connecting to a web server through a load balancer(or an HTTP proxy),  since the load balancer acts as a proxy and thus all requests look like they are coming from the load balancer. So the default logging of the web server will log the load balancer's IP not the real client IP in the log. How can the logging be customized to log  the X-Forward-For header that contains the original client IP address?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms