Re: RemoteAddressValve

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 7/8/2009 10:01 AM, Leo Donahue - PLANDEVX wrote: > If I put the following nested in the element of my server.xml, > is that the right way to do it? > > privileged="true" > > allow="176.24.*.*"/> > > /> Note that it inappropriate to put

Re: RemoteAddressValve

2009-07-08 Thread Mark Thomas
Leo Donahue - PLANDEVX wrote: > Andre, Tim, > > Thanks for the feedback on the regex. > > I don't think I can nest a inside a You can if you use valid xml. > privileged="true" > allow="176\.24\..*" /> > /> You want: Mark

Re: RemoteAddressValve

2009-07-08 Thread Pid
On 8/7/09 15:01, Leo Donahue - PLANDEVX wrote: I want to restrict web access to a specific web app to only allow it to be available on our domain. If I put the following nested in the element of my server.xml, is that the right way to do it? /> You didn't specify which version of Tomcat

RE: RemoteAddressValve

2009-07-08 Thread Leo Donahue - PLANDEVX
sing the zip file version. So I look at my code again and notice I have it messed up. I changed it to the following, no more errors in the catalina log. Sometimes it helps to think it out loud. -Original Message- From: André Warnier [mailto:a...@

Re: RemoteAddressValve

2009-07-08 Thread André Warnier
Leo Donahue - PLANDEVX wrote: ... I don't know about the context in which you can use this, but about the above, your "allow" attribute is incorrect. It should be : "A comma-separated list of /regular expression patterns/ that the remote client's IP address is compared to." If I unders

Re: RemoteAddressValve

2009-07-08 Thread Tim Funk
allow is a regex - you probably want this: allow="176\.24\..+" with allow="176.24.*.*" - you would also let through 176.240. 176.241. ... 176.249. -Tim Leo Donahue - PLANDEVX wrote: I want to restrict web access to a specific web app to only allow it to be available on our domain. If I put