Ok, I changed the allow attribute to a regular exp. Looks like this now:

          <Valve className="org.apache.catalina.valves.RemoteAddrValve"
               allow="192\.168\.200\.188" 
                />

But still the filter lets all users access the application. 

Cheers,
Pete


> -----Ursprüngliche Nachricht-----
> Von: Mark Thomas [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 14. November 2006 01:11
> An: Tomcat Users List
> Betreff: Re: Problem with RemoteAddrValve in Context.xml
> 
> Peter Neu wrote:
> > I'm trying to define an ip access filter with RemoteAddrValve in the
> > context.xml file I deploy with my war file.
> >
> > If I read the documentation right the only thing to be done is write the
> > following into the context.xml file:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <Context path="/user/public/">
> >   <Valve className="org.apache.catalina.valves.RemoteAddrValve"
> >         allow="192.168.200.188"
> >         />
> > </Context>
> >
> > But this does not work out. Does anyone know what's wrong?
> 
> As the docs state, you need to use a regular expression.
> "192.168.200.188" doesn't do what you think it does since "." is a
> special character in regular expressions.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to