tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: org.apache.catalina.valves.RemoteAddrValve on Tomcat 7.0.27 x64 Windows 2008 R2
Date Thu, 13 Dec 2012 15:10:11 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message