Overriding a ProxyPass from the main config in a VirtualHost

Solution Verified - Updated -

Issue

  • We have a ProxyPass specified in the main config that we want to override in a VirtualHost, for example:

    ProxyPass / http://destination1.com:8080/
    NameVirtualHost *:80
    <VirtualHost *:80>
        ServerName proxytodestination2instead.com
        ProxyPass / http://destination2.com:8180/
    </VirtualHost>
    

    It looks like only the ProxyPass from the main config will be used though. Is there anyway we can have the Virtual Host's ProxyPass take precedence?

Environment

  • JBoss Enterprise Web Server (EWS)
  • Red Hat Enterprise Linux (RHEL)
  • 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