How to configure a proxy to use the host header of the proxy instead of the backend server?

Solution Verified - Updated -

Issue

  • How to configure a proxy to use the host header of the proxy instead of the backend server?
  • Is there a way to have mod_cluster use the X-Forwarded* headers as the source info for the HTTP request?
  • We have set up a proxy for our application and it more or less works, but the REST API used by the browser application ignores the proxy and invokes the backend application directly.

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 6+
  • Red Hat Software Collections (RHSCL)
    • 2.0+
  • Red Hat JBoss Web Server (JWS)
    • 3.0+
  • Red Hat JBoss Core Services (JBCS)
    • 2.4.23+
  • Apache httpd

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