tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject RemoteAddrValve for a specific URL pattern
Date Fri, 26 Sep 2008 16:28:19 GMT
-----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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message