How to restrict forwarding requests from Apache httpd to JBoss Tomcat using the AJP connector in JBoss EAP 5.1.1?
Issue
- The AJP connector request.getRemoteAddr() method returns the IP from the RADDR attribute. How to get the IP address from the IP source header instead of RADDR using the AJP connector?
- Is it possible to use the Apache IP address from the source header to restrict access?
- What are the alternative solutions if the IP address is not available via AJP?
Environment
- JBoss Enterprise Application Platform (EAP) 5.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.