[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

AS/400 Apache Reverse Proxy maintaining original IP address

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?
0
jcrocker2006
Asked:
jcrocker2006
1 Solution
 
sleep_furiouslyCommented:
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:

   %{X-Forwarded-For}i

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.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now