This snippet is probably most useful when you have a light front-end apache server proxying a heavy, mod_perl-enabled backend. This snippet assumes the front-end has authentication required.

(This seems to work, use at your own risk)

In your httpd.conf:
<Location /> # This is a local server for local clients. # We'll have no trouble here. Order deny,allow Deny from all Allow from 127.0.0.1 Allow from 192.168 # Front end is Auth configured and passes back the # Basic header, we trust it and set ->user <Perl> { package AcceptAll; sub handler { return ($_[0]->get_basic_auth_pw)[0]; } 1; } </Perl> PerlAuthenHandler AcceptAll AuthName "MyName" AuthType Basic require valid-user </Location>

Replies are listed 'Best First'.
•Re: Accept Any Basic Authentication (mod_perl)
by merlyn (Sage) on Mar 25, 2003 at 03:54 UTC