Jboss Multiple context-root pointing even War

Asked

Viewed 89 times

0

good night.

Is it possible for me to configure several context-root Jboss pointing to the same War? If it’s not possible in jboss, is there any way I can do it?

Thank you

  • Take a look at this answer: http://stackoverflow.com/questions/30875657/multiple-context-root-for-single-war-deployment-jboss-eap-6-1

  • Very good, but I could not configure for Jboss 6, only in 7. Thank you

2 answers

0

0

I think it is possible yes, I ended up finding this command in case you use jboss 7+

Pin your application via jboss-web.xml to context-root path1 and add rewrite Rule to standalone.xml as Shown:

<virtual-server name="default-host" enable-welcome-root="false">  
     <alias name="localhost"/> 
     <rewrite name="rule-1"  pattern="^/path1(.*)$" substitution="/path2/$1" flags="NC"/>
 </virtual-server>
  • I did a POC with Jboss 7 and it worked the way I want, but I need it for Jboss 6 and it’s hard to find.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.