AS/400 Apache Reverse Proxy maintaining original IP address

Posted on 2006-05-18
Last Modified: 2011-10-03
I set up a port 80 reverse proxy server that handles all incoming internet traffic and passes on to one of many intranet servers.  What I seem to find is that the intranet servers do not maintain the original IP of the incoming request but instead list the IP of the proxy as the actual IP.  Is there a way to maintain the original IP for better user tracking?
Question by:jcrocker2006
    1 Comment
    LVL 10

    Accepted Solution

    If the Apache you are running as a proxy is version 2.x or a recent version of 1.3.x, it should pass along the X-Forwarded-For header.

    For an intranet server that is Apache, add to your log format:


    to log the client's IP address.

    If the Apache proxy you are using is an older version 1.3.x, you might want to look around for third-party module such as mod_proxy_add_forward to pass on the information.

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting ( to http…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now