tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Altrock, Jens" <Jens.Altr...@STADT-NW.DE>
Subject AW: Restrict access to webapps for IPs
Date Tue, 10 May 2005 14:12:58 GMT
Hm... won't work :(

I added to noe of the apps in webapps/name_of_app/WEB-INF/web.xml the
following:

<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="192.100.46.*"/>

right after the <web-app> tag in the xml file.
But people can access that application from the internet anyway...


> -----Urspr√ľngliche Nachricht-----
> Von: Lutz Zetzsche [mailto:Lutz.Zetzsche@sea-rescue.de]
> Gesendet: Dienstag, 10. Mai 2005 16:00
> An: Tomcat Users List
> Betreff: Re: Restrict access to webapps for IPs
> 
> 
> Hi Jens,
> 
> Altrock, Jens schrieb:
> > Ok, got that. But do I need to install the regular 
> expressions library?
> 
> To my practical knowledge, the RemoteAddrValve will work out 
> of the box.
> You don't have to install additional libraries to get it work.
> 
> 
> > And how to say that I want a whole subnet to be added?
> 
> For allowing a whole subnet, just use an asterisk in the 
> allow attribute
> value:
> 
>      <Valve ... allow="192.168.0.*"/>
> 
> 
> Lutz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
###########################################
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message