Details
-
Feature Request
-
Resolution: Done
-
Major
-
JBossAS-5.1.0.GA
-
None
-
0
-
0%
Description
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)