How to configure JBoss EAP 7/8 Undertow mod_cluster for different hostnames

Solution Verified - Updated -

Issue

  • How to configure Undertow to serve site similar to Apache httpd. Example:
<VirtualHost *:80>
   ServerName host1.example.com
   ProxyPass / balancer://context1/ stickysession=JSESSIONID|jsessionid nofailover=On
</VirtualHost>
<VirtualHost *:80>
   ServerName host2.example.com
   ProxyPass / balancer://context2/ stickysession=JSESSIONID|jsessionid nofailover=On
</VirtualHost>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 8.x
    • 7.x

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