How can I log the original clients address from the X-Forwarded-For header?
Issue
- I have a proxy or NAT in front of Apache httpd, Tomcat or JBoss. I want access logs to capture the original client ip, which is available in the X-Forwarded-For header, instead of the proxy or NAT'd address.
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.x
- 6.x
- 7.x
- JBoss Enterprise Web Server (EWS)
- 2.x
- 3.x
- Tomcat
- Apache httpd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
