Hi,
As the Valve config reference doc says, you can put a Valve inside an
Engine, Host, or Context.  It applies at whatever scope you put it.  So
if you have a Valve inside a Context, it only applies to that context.
If you have a Valve inside a Host, it applies to all Contexts within the
Host, including those automatically created and not explicitly declared.

As Valve is a tomcat-specific feature, it would never be in web.xml.
It'd be in server.xml or your context configuration file.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Robert S. Colliver [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 11, 2004 1:00 PM
>To: [EMAIL PROTECTED]
>Subject: Using RemoteAddrValve for individual webapps.
>
>I have seen many posts on this subject, but no definitive answers.
It's
>said that you can use the RemoteAddrValve and RemoteHostValve to allow
>different degrees of access to different applications published under
>webapps, but how?
>
>The admin.xml example uses a context fragment.  If I have another
>application under webapps do I need to create a similar context
fragment
>for it?  Do I create a context for it in the server.xml?  Or perhaps
the
>RemoteAddrValve code is placed into that applications WEB-INF/web.xml?
>
>Bob




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to