You can't split a webapp into protected and not protected with the
valve. It's all or nothing. You'd be better off implementing a filter
in your webapp that pay's attention to request.getRemoteAddr() and
either chains the request or redirects to an error page.
--David
Peter Neu wrote:
I just tried some more but I can't get it to work. Is there another way to
resolve the problem?
I need one part of the application /app/public open for everybody and
another part of the application /app/internal open only for people with a
certain ip address 192.168.200.*
Any ideas?
Cheers,
Pete
-----Ursprüngliche Nachricht-----
Von: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 14. November 2006 16:16
An: Tomcat Users List
Betreff: RE: Problem with RemoteAddrValve in Context.xml
From: Peter Neu [mailto:[EMAIL PROTECTED]
Subject: AW: Problem with RemoteAddrValve in Context.xml
Yes. And when I deleted it. Then I must restart the app and this
automatically triggers the creation of a new context.xml file
in the dir conf/Catalina/localhost.
Hopefully this one is an exact copy of the one in META-INF/context.xml.
I haven't yet determined under exactly what conditions Tomcat chooses to
make a copy of the <Context> element, but doing so does cause some
confusion if you don't realize it happened. May have something to do
with the deployOnStartup and autoDeploy settings, but I'm only
speculating on that.
- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]