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

    • Feature Request
    • Resolution: Done
    • Major
    • 6.0.0.M2
    • JBossAS-5.1.0.GA
    • Web (Tomcat) service
    • None
    • 0
    • 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)

      Attachments

        Activity

          People

            rmaucher Remy Maucherat
            work_registries John Doe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: