RemoteAddrValve for a specific URL pattern

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I'm looking for something like the RemoteAddrValve but that can be used
on a particular URL pattern. Basically, I have an administrative health
check URL that I'd like to hit, but only from approved clients. The
rest of the application should be open to everyone.

The RemoteAddrValve appears to be valid at its narrowest scope in the
Context, which is still too wide for me.

I see that tuckey's urlrewrite library can probably do this for me
(redirect somewhere else if the address doesn't match), but it seems a
bit overkill.

I also have Apache httpd out front would could be used, but I think I'd
like to have this configuration inside my webapp instead of relying on
the fronting web server configuration to be correct.

Does anyone have any other ideas? I could certainly write my own filter,
but I figure that someone has either another idea, or an existing filter
that I might be able to borrow.

Thanks,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjdDaMACgkQ9CaO5/Lv0PBeBACfbTWegwE/cnRpJdCgh4oWsLiY
88EAnigH3/t9WYk0bjc/7tY6vtv04dTk
=Te6w
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RemoteAddrValve for a specific URL pattern

2008-09-26 Thread André Warnier

Christopher Schultz wrote:
[...]


I see that tuckey's urlrewrite library can probably do this for me
(redirect somewhere else if the address doesn't match), but it seems a
bit overkill.

I recommend though.  The setup is very easy and flexible, and the author 
claims it is very light-weight. I have used only a tiny portion of it, 
but it worked right away to do what I wanted, in 10 minutes all told 
including reading the doc.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]