Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7159

allow org.jboss.web.rewrite.RewriteValve rewrite resource to be configurable

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-5.1.0.GA
    • Fix Version/s: 6.0.0.M2
    • Component/s: Web (Tomcat) service
    • Labels:
      None
    • Environment:

      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rmaucher Valued Customer
                Reporter:
                work_registries Juergen H
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: