[jboss-jira] [JBoss JIRA] (AS7-1762) rewrite rule doesnt function
Carl L (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Wed Nov 2 21:56:45 EDT 2011
[ https://issues.jboss.org/browse/AS7-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639529#comment-12639529 ]
Carl L edited comment on AS7-1762 at 11/2/11 9:56 PM:
------------------------------------------------------
I actually tested 7.0.2 and basic rules without condition tags are working for me, such as
{code}
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
<rewrite pattern="^(.*)/([\w\-]+)$" substitution="$1/$2.jsp"/>
</virtual-server>
{code}
which I used to test the appending of .jsp. So it's useful to me even without the full 7.1.0 fix.
was (Author: scorcher14x):
I actually tested 7.0.2 and basic rules without condition tags are working for me, such as
{code}
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
<rewrite pattern="^(.*)/([\w\-]+)$" substitution="$1/$2.jsp"/>
</virtual-server>
{code}
which I used to test the appending of .jsp. So it's useful to me even without the full 7.1.0 fix.
> 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
> Fix For: 7.1.0.Beta1
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list