4 Replies Latest reply on Sep 8, 2011 3:09 PM by jefimm

    Url rewrite in Jboss AS7

    jefimm

      Hi,

       

      How can one use url rewrite in Jboss AS 7.0.1 ?

       

      I have tried to add the following configuration to the standalone.xml <virtual-server> node:

      <virtual-server name="default-host">

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                      <rewrite pattern="^/helloworld(.*)" substitution="/helloworld/test.jsp"/>

      </virtual-server>

       

      and I have deployed the helloworld.war, however the rewrite does not work (I know I can deploy war at the root context I just want to test the rewrite).

       

      Does the http://docs.jboss.org/jbossweb/7.0.x/rewrite.html apply to the Jboss AS7?