On Tue, Jan 11, 2011 at 4:52 AM, Anders Melchiorsen <m...@spoon.kalibalik.dk
> wrote:

> Hi.
>
> I want to password protect some directories by forwarding the HTTP
> authentication to a different URL. That is, rather than using LDAP or MySQL
> as a backend, I want to use a CGI script (possibly on a different server).
>

You can do this with mod_perl and one of these modules:

http://search.cpan.org/~chansen/Authen-Simple-HTTP-0.2
http://search.cpan.org/~chansen/Authen-Simple-0.4


Both can be used directly in the Apache configuration file and behave like
Apache authentication handlers.

The second module requires a bit more work to set up, but can support
caching, which can be useful depending on your setting.

I have been using a module which is a slightly customized blend of the two
for several years now with great success.

Hope this helps!

----Scott.

Reply via email to