Apache Redirect directive does not work on the server level

Solution Unverified - Updated -


  • We need that some requests will be redirect to other site, but it seems that all requests with the context of application are redirect to Application server.

    We have this configuration:

    RedirectPermanent  /myApp/example/index.html     https://my.other.site.com/example/index.html
    <Location /myApp>
         ProxyPass  "balancer://myBalancer/myApp/"
         ProxyPassReverse  "balancer://myBalancer/myApp/"


  • Red Hat Enterprise Linux (RHEL)
    • 7+
  • 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
    • 2.4

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