DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28366

The example for request filters is wrong

           Summary: The example for request filters is wrong
           Product: Tomcat 4
           Version: Nightly Build
          Platform: All
               URL: http://jakarta.apache.org/tomcat/tomcat-4.1-
                    doc/config/context.html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps:Documentation
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The documentation contains examples for the proper syntax for a request filter
but the syntax is wrong. The doco says the filter uses the regex library but the
example does not use regex syntax.

Here is what the example is:

<Valve className="org.apache.catalina.valves.RemoteHostValve"
         allow="*.mycompany.com,www.yourcompany.com"/>
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
         deny="192.168.1.*"/>

Should be:

<Valve className="org.apache.catalina.valves.RemoteHostValve"
         allow=".*mycompany\.com,www\.yourcompany\.com"/>
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         deny="192\.168\.1\..*"/>

Thanks,
Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to