p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: Custom error messages, IIS5


Message #1 by Patrick Mair <pmair@e...> on Tue, 17 Dec 2002 15:45:32 -0500
I use only "Basic authentication".  When I enter wrong logins, I'm 
directed
to error 401.1.  I managed to change the page.

In IIS (Win2k), I right-click on my site and choose Properties, then 
"Custom
Errors" and press "Edit Properties" button for the "401;1" error.

But it's better to put the customized HTML outside the site under 
security
control, or you'll get into trouble.

> -----Message d'origine-----
> De : Patrick Mair [mailto:pmair@e...]
> Envoy=C3=A9 : jeudi 19 d=C3=A9cembre 2002 16:42
> =C3=80 : Pro ASP HowTo
> Objet : [proasp_howto] Re: Custom error messages, IIS5
>
>
> I've set an error page for every HTTP error in the IIS list. 
> The error I
> get in the browser is not one of those pages, it's a simple
> text string
> saying "Error: Access is Denied."
>
> "Ken Schaefer" <ken@a...> wrote in message
> news:245993@p..._howto...
> >
> > Please note that 403 is Access Denied (which is what you
> get if you fail
> to
> > provide proper credentials). 401 is Not Authorized, which
> causes the login
> > box to popup.
> >
> > So:
> >
> > Browser Requests Page
> > Server Responds with 401 Not Authorized
> > Browser Pops up Login Box (three times)
> > Server Responds with 403 Access Denied (if credentials are not OK).
> >
> > So I think you need to change the 403 page to get a custom
> error message
> to
> > popup.
> >
> > Cheers
> > Ken
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > From: "Imar Spaanjaars" <Imar@S...>
> > Subject: [proasp_howto] Re: Custom error messages, IIS5
> >
> >
> > : You're welcome.
> > :
> > : And please post the solution you come up with (if any). I
> am rather
> > curious
> > : and it would help other people in the future when they search 
this
> message
> > : board.
> > :
> > : Cheers,
> > :
> > : Imar
> > :
> > :
> > : At 03:33 PM 12/18/2002 -0500, you wrote:
> > : >Thanks for looking into this Imar!
> > : >
> > : >I've posted a more detailed explanation of the problem
> and some of what
> > I've
> > : >tried to fix it in asp_webserver.  Hopefully someone
> will come up with
> > : >something -- I agree, there MUST be a solution to this.
> > : >
> > : >Patrick
> > :
> >
> >
> >
>
>
>
>

  Return to Index