Hi André

This worked
<Valve className="org.apache.catalina.valves.RemoteAddrValve" 
allow="(127\.0\.0\.1|192\.168\.12\.22|192\.168\.12\.23)"/>

The other used to work for Tomcat 6.

Thanks a lot.


Br
Michael Trabjerg


-----Original Message-----
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: 13. december 2012 16:10
To: Tomcat Users List
Subject: Re: org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 
Windows 2008 R2

Michael Trabjerg wrote:
> Hi
> 
>  
> 
> Info: Tomcat 7.0.27 x64  running on Windows 2008 R2
> 
>  
> 
> Tomcat 6 allowed me to restrict access to Tomcat for more than one IP 
> address, but it does not seem to work on Tomcat 7.0.27.
> 
>  
> 
> Usually this worked: <Valve
> className="org.apache.catalina.valves.RemoteAddrValve"
> allow="127\.0\.0\.1\, 192\.168\.12\.22, 192\.168\.12\.23"/>
> 
>  
> 
> Now I can only make to following work  <Valve 
> className="org.apache.catalina.valves.RemoteAddrValve"
> allow="127\.0\.0\.1"/>
> 

I believe you need to re-read the on-line docs.
It is probably indicated there that this should be a regexp, not a list of 
regexpes.
So try something like "(127\.0\.0\.1\|192\.168\.12\.22|192\.168\.12\.23)"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to