Hi Jens, Altrock, Jens schrieb: > 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...
You have put the Valve element into the wrong file resp. place. It cannot be nested into the <web-app> element and cannot be placed in the web.xml. You have to nest it into a <engine>, <host> oder <context> element. In your case, you have to nest it into the <context> element because you want to apply the filter rule to a web application which is equivalent to the <context> element in Tomcat terms. You should have a look at one of the links I mentioned to find the right place for the Valve element: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Try one of these options offered on this page (refers to Tomcat version 5.5): * in individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files Best wishes Lutz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
