> From: m zyzy [mailto:myz...@gmail.com] > Subject: enable only localhost access to tomcat 6.0.18 /manager in > win32
> Now , I want the /manager webapp only be accesible from localhost only > ( but other webapp must be accessible from outside whether private LAN > or Internet) ,but how ? Use the RemoteAddrValve: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Address%20Filter Put it inside the manager's <Context> element in webapps/manager/META-INF/context.xml; the file should look something like this when you're done: <Context antiResourceLocking="false" privileged="true"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1"/> </Context> Note that the periods in the IP address are escaped since this is a regular expression. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org