[jboss-jira] [JBoss JIRA] Commented: (AS7-1762) rewrite rule doesnt function
jefimm (JIRA)
jira-events at lists.jboss.org
Fri Sep 30 15:32:26 EDT 2011
[ https://issues.jboss.org/browse/AS7-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631604#comment-12631604 ]
jefimm commented on AS7-1762:
-----------------------------
I have tested this in 7.0.2 and after adding the following
<rewrite pattern="!^/12.001.0(.*)" substitution="/12.001.0$1">
<condition test="%{HTTPS}" pattern="on"/>
</rewrite>
The standalone.xml is saved as
<rewrite>
<condition test="%{HTTPS}" pattern="on" pattern="!^/12.001.0(.*)" substitution="/12.001.0$1"/>
</rewrite>
And next time the server is started in complains about the configuration parsing
> 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.0.2.Final
>
> 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