Let's say that I don't want to mess with my working server.xml.  If I
have an application that's accessed via "webapps/myapp/jsp/index.html",
where would I put the RemoteAddrValve code?  Do I create a context
fragment called webapps/myapp.xml and put it there?  I'd rather not have
to add a context declaration for every application into the server.xml.
I have quite a few applications, and they all have different access
requirements. 

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 11:28 AM
To: Tomcat Users List
Subject: RE: Using RemoteAddrValve for individual webapps.


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]




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

Reply via email to