How do I make a single web application available under multiple contexts?

Solution Verified - Updated -

Issue

  • We would like to deploy a single war and have the application available under the root context www.domain.com and also under a named context www.domain.com/app/.

  • How to rewrite the old URL to the new one internally in EAP 6.x ?

  • I want to keep the context name but to have a separate friendly name for the URL access. Is there any Jboss parameter that I could use so as to achieve this goal ?

  • Is it possible to access the application on multiple contexts as below:
    http://10.10.10.10:8080/myApp and http://10.10.10.10:8080/app/myApp

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.