How to configure JBoss EAP 7/8 Undertow mod_cluster for different hostnames
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.