[jboss-jira] [JBoss JIRA] Commented: (AS7-1762) rewrite rule doesnt function

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Fri Sep 9 04:25:26 EDT 2011


    [ https://issues.jboss.org/browse/AS7-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627452#comment-12627452 ] 

Remy Maucherat commented on AS7-1762:
-------------------------------------

Looking at the code, there's an apparent problem, and it is possible it won't work if there are no conditions. Try adding one.

> rewrite rule doesnt function
> ----------------------------
>
>                 Key: AS7-1762
>                 URL: https://issues.jboss.org/browse/AS7-1762
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: 7.0.1.Final
>            Reporter: jefimm
>            Assignee: Remy Maucherat
>         Attachments: helloworld.war
>
>
> 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).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list