Configure Undertow as load balancer for different application context
Issue
- How to configure Undertow to serve site similar to Apache, i.e
<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
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
