Not acked... FYI... Pier
------ Forwarded Message > From: "Stoffer, Shawn D" <[EMAIL PROTECTED]> > Date: Tue, 7 Jan 2003 11:55:11 -0700 > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > 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
Stoffer, Shawn D.vcf
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>