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
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
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>
Gentlemen, in the end I managed to solve by following the documentation below:
My rewrite.properties looks like this:
RewriteRule ^ / path1 (. *) $ / path2 $ 1 [NC]