How to restrict forwarding requests from Apache httpd to JBoss Tomcat using the AJP connector in JBoss EAP 5.1.1?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content