tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@apache.org>
Subject FW: documentation error
Date Tue, 07 Jan 2003 19:05:47 GMT
Not acked... FYI...

    Pier

------ Forwarded Message
> From: "Stoffer, Shawn D" <sdstoff@sandia.gov>
> Date: Tue, 7 Jan 2003 11:55:11 -0700
> To: "'webmaster@jakarta.apache.org'" <webmaster@jakarta.apache.org>
> Subject: documentation error
> 
> I wished to point out that in the jakarta/tomcat documentation, there is an
> error.  
> 
> Under server configuration reference, Host
> (webapps\tomcat-docs\config\host.html), it shows, under the section heading
> request filters, an example of using the valve xml tag for the server.xml
> configuration file.
> 
> <Host name="localhost" ...>
> ...
> <Valve className="org.apache.catalina.valves.RemoteHostValve"
>        allow="*.mycompany.com,www.yourcompany.com"/>
> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>        deny="192.168.1.*"/>
> ...
> </Host>
> 
> The problem is in the regular expression, it should read:
> 
> <Host name="localhost" ...>
> ...
> <Valve className="org.apache.catalina.valves.RemoteHostValve"
>        allow="\w*.mycompany.com,www.yourcompany.com"/>
> <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>        deny="192.168.1.\d*"/>
> ...
> </Host>
> 
> Without the '\w' and the '\d' the server will not start, as the regular
> expression engine will throw an exception.
> 
> Excellent job, else, guys!  Thanks,
> 
> Shawn Stoffer
> <<Stoffer, Shawn D.vcf>>
> 

------ End of Forwarded Message


Mime
View raw message