-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Leo,
On 7/8/2009 10:01 AM, Leo Donahue - PLANDEVX wrote: > If I put the following nested in the <Host> element of my server.xml, > is that the right way to do it? > > <Context path="/mywebapp" docBase="mywebapp" debug=0 > privileged="true" > > <Valve className="org.apache.catalina.valves.RemoteAddrValve" > allow="176.24.*.*"/> > > /> Note that it inappropriate to put <Context> elements in server.xml in versions of Tomcat after the 5.0.x series. Assuming you are using something more recent (and you should be!), you want to use a META-INF/context.xml file within your webapp's WAR file (or WAR-like directory structure). The XML is the same, it's just in a separate file. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpY+60ACgkQ9CaO5/Lv0PBOgACeO5MS8Kv4Kr4V50UNBvAh+BeG 6f0An1jnv/CdHiyqh6yln6usFXeFQCvj =2/mG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org