[jboss-jira] [JBoss JIRA] Resolved: (JBAS-7159) allow org.jboss.web.rewrite.RewriteValve rewrite resource to be configurable
Remy Maucherat (JIRA)
jira-events at lists.jboss.org
Wed Nov 18 11:58:29 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remy Maucherat resolved JBAS-7159.
----------------------------------
Fix Version/s: JBossAS-6.0.0.M2
Resolution: Done
I have added better usability for RewriteValve at the context level. Your overriding should continue to work well.
> allow org.jboss.web.rewrite.RewriteValve rewrite resource to be configurable
> ----------------------------------------------------------------------------
>
> Key: JBAS-7159
> URL: https://jira.jboss.org/jira/browse/JBAS-7159
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Affects Versions: JBossAS-5.1.0.GA
> Environment: 20:27:19,891 INFO [ServerInfo] Java version: 1.6.0_14,Sun Microsystems Inc.
> 20:27:19,891 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> 20:27:19,892 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.0-b16,Sun Microsystems Inc.
> 20:27:19,892 INFO [ServerInfo] OS-System: Linux 2.6.9-22.0.1.ELsmp,amd64
> Reporter: Juergen
> Assignee: Remy Maucherat
> Fix For: JBossAS-6.0.0.M2
>
> Attachments: RewriteValve.java
>
>
> add resourcePath attribute setter to valve, so following works:
> <Valve className="org.jboss.web.rewrite.RewriteValve" resourcePath="resource:my-rewrite.properties"/>
> would like to add valve in deploy/jbossweb.sar/context.xml so its added to all webapps
> I can't put it into engine or host element in server.xml, because its added to valve pipeline before error handling valves etc. so rewrite rule with [R=404] would show empty page, not proper error page
> I don't want to add a copy of same rewrite.properties to every .war WEB-INF
> using rewrite filter to deny access to dot-prefixed files (like .svn, .project, ...) that tomcat would otherwise service as usual
> (if there is a better solution than using rewrite filter, I'd like to hear it, but does not change suggested improvement for rewrite filter)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list