That worked!  But can you tell me why it worked?  

Thanks

-- 
Nancy


On Fri, 21 Jan 2000, Chuck O'Donnell wrote:

> How about
> 
> ErrorDocument 401 /error.html
> 
> Thanks,
> 
> Chuck
> 
> On Thu, Jan 20, 2000 at 12:39:23PM -0800, Nancy Lin wrote:
> > 
> > Hi 
> > 
> > I don't know if this is a problem w/ modperl or apache itself.
> > 
> > I'm running proxy server apache 1.3.9 and modperl 1.21.  I'm using modperl
> > to authenticate my users.  When a
> > user is invalid, my code does:
> > 
> >               } else {
> >                   loginfo($r, "AuthenSession::handler: bad password") ;
> >                   $r->note_basic_auth_failure;
> >                   return AUTH_REQUIRED;
> >               }
> > 
> > On Netscape 3.x, a little window pops up saying authentication failed, do
> > you want to retry?  Here's the part I don't quite understand.  If I
> > configure httpd.conf with 'ErrorDocument 407 "Wrong Password!', that's
> > what I'll see when I click on the Cancel button on that little popup.
> > But, if I configure httpd.conf with 'ErrorDocument 407 /error.html, it
> > gives me the default error 407 page.  I'm not sure why it's doing that.  I
> > would rather point this to an file than to write it in httpd.conf.
> > 
> > My httpd.conf has:
> > 
> > <Directory /opt/apache/http-proxy/htdocs>
> > Options Indexes FollowSymLinks ExecCGI
> > AllowOverride None
> > Order Allow,Deny
> > Allow from All
> > #require valid-user
> > </Directory>
> > 
> > <Directory proxy:*>
> > order deny,allow
> > allow from all
> > AuthName "Test"
> > AuthType Basic
> > PerlAuthenHandler Apache::AuthenSession
> > require valid-user
> > </Directory>
> > 
> > 
> > 
> > Thanks
> > 
> > -- 
> > Nancy
> > 
> 

Reply via email to