perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DJ \(David J Radunz\)" ...@webmastery.com.au>
Subject Re: ErrorDocument 401 problem..
Date Mon, 10 Dec 2001 19:27:19 GMT
HaHa! i found some doccumentation on exactly what i needed :
http://perl.apache.org/faq/#so%20how%20do%20i%20use%20mod_perl%20in%20conjun
ction%20with%20errordocument

which basically told me to add this bit of code at the top of my module:

    $r->content_type('text/html; charset=ISO-8859-1');
    $r->send_http_header;
    $r->status(200);


that first sends the original status to the browser (with send_http_header)
then sets the status to 200 to make apache happy.. this works fine.

Thanks for tryin to help thou,

DJ

----- Original Message -----
From: "Richard L. Goerwitz III" <richard@Goerwitz.com>
To: "DJ (David J Radunz)" <dj@webmastery.com.au>
Sent: Tuesday, December 11, 2001 6:07 AM
Subject: Re: ErrorDocument 401 problem..


> "DJ (David J Radunz)" wrote:
> >
> > before i uncomment the "#ErrorDocument 401 /error/401" line i get:
> >
> > [root@astroboy ErrorControl]# GET -s -d
http://www.chingali.com/ClientLogin
> > Enter username for CHINGALIwebstudios: Client Login Access at
> > www.chingali.com:80: DJ
> > Password:
>
> Okay.  Looks good.  The browser (GET) is making the request, and
> it's getting a 401 error code from your server.  If you enter the
> username and password, you presumably get in.  If you don't, I
> presume you get your error handler page.
>
> Is this right?
>
> --
>
> Richard Goerwitz                               richard@Goerwitz.COM
> tel: 401 438 8978
>


Mime
View raw message