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
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
0
Gentlemen, in the end I managed to resolve following the documentation below:
http://jbossweb.jboss.org/modules/rewrite.html
My rewrite.properties looked like this:
Rewriterule /path1(.*)ː /path2$1 [NC]
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 java jboss
You are not signed in. Login or sign up in order to post.
Take a look at this answer: http://stackoverflow.com/questions/30875657/multiple-context-root-for-single-war-deployment-jboss-eap-6-1
– Estevão Jordão
Very good, but I could not configure for Jboss 6, only in 7. Thank you
– El Diablo