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 none
Assignee: Remy Maucherat
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 but it into engine or host element in server.xml, because its 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
use 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