Nopt in web.xml but in server.xml in your <context></context>
-----Original Message----- From: Altrock, Jens [mailto:[EMAIL PROTECTED] Sent: 10 May 2005 15:13 To: 'Tomcat Users List' Subject: AW: Restrict access to webapps for IPs 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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ########################################### Diese Nachricht wurde von F-Secure Anti-Virus gescannt. This message has been scanned by F-Secure Anti-Virus. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]