Jboss Multiple context-root pointing same war

0

Good evening.

Is it possible to configure Jboss multiple context-root pointing to the same war? If it is not possible in jboss, is there any way I can do this?

Thank you

    
asked by anonymous 10.02.2017 / 21:58

2 answers

0

I think it is possible, yes, I found this command if 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>
    
14.02.2017 / 17:29
0

Gentlemen, in the end I managed to solve by following the documentation below:

link

My rewrite.properties looks like this:

RewriteRule ^ / path1 (. *) $ / path2 $ 1 [NC]

    
15.02.2017 / 00:09