On 8/7/09 15:01, Leo Donahue - PLANDEVX wrote:
I want to restrict web access to a specific web app to only allow it to be
available on our domain.
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.*.*"/>
/>
You didn't specify which version of Tomcat you're using, but assuming
it's a recent and supported one, you shouldn't be configuring the
context in server.xml.
The META-INF/context.xml directory (and file) inside the webapp is the
preferable place.
Also you shouldn't be using the path nor probably the docBase attributes.
p
(You had your chance Chuck.)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org