Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Custome Error msg

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  scripts directory gone in IIS 6.0?  
Author Message
user715

External


Since: Sep 03, 2003
Posts: 1



(Msg. 1) Posted: Wed Sep 03, 2003 10:56 am
Post subject: Custome Error msg
Archived from groups: microsoft>public>inetserver>iis (more info?)

All,

I have setup a web site that has a restricted access page.
What this means is that the web site is accessiable to
everyone, except 1 page that I have password protected. I
would like to have a custom error msg be displayed when
users try to access this page and enter invalid passwords.
I have made the page, i just need to know how to display
it as a error page. Could someone please help.

Thanks.

DJ

 >> Stay informed about: Custome Error msg 
Back to top
Login to vote
user676

External


Since: Aug 28, 2003
Posts: 6



(Msg. 2) Posted: Wed Sep 03, 2003 1:34 pm
Post subject: Re: Custome Error msg [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

if it is an asp page
response.write("error message")


"DJ" <no.TakeThisOut@No.com> wrote in message
news:010901c3722b$8f840520$a101280a@phx.gbl...
 > All,
 >
 > I have setup a web site that has a restricted access page.
 > What this means is that the web site is accessiable to
 > everyone, except 1 page that I have password protected. I
 > would like to have a custom error msg be displayed when
 > users try to access this page and enter invalid passwords.
 > I have made the page, i just need to know how to display
 > it as a error page. Could someone please help.
 >
 > Thanks.
 >
 > DJ<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Custome Error msg 
Back to top
Login to vote
alexs

External


Since: Sep 03, 2003
Posts: 3



(Msg. 3) Posted: Wed Sep 03, 2003 4:31 pm
Post subject: Re: Custome Error msg [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"DJ" <no DeleteThis @No.com> wrote in message news:<010901c3722b$8f840520$a101280a@phx.gbl>...
 > All,
 >
 > I have setup a web site that has a restricted access page.
 > What this means is that the web site is accessiable to
 > everyone, except 1 page that I have password protected. I
 > would like to have a custom error msg be displayed when
 > users try to access this page and enter invalid passwords.
 > I have made the page, i just need to know how to display
 > it as a error page. Could someone please help.
 >
 > Thanks.
 >
 > DJ


Map 401.* (401.1 at least) errors to the custom error page you've
created.
Use Internet Service Manager -> Right-click on any item (DWS, a
virtual root) or select Master WWW properties (it depends on your task
scope) -> Custom errors tab.

Alexander.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Custome Error msg 
Back to top
Login to vote
user649

External


Since: Aug 25, 2003
Posts: 244



(Msg. 4) Posted: Thu Sep 04, 2003 6:25 am
Post subject: RE: Custome Error msg [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi DJ,

I think KP and Alexander have given two solutions on two scenarioes for
you.

If you use the asp, you can check some session variables to see whether the
customer has the permission to this page. If not, redirect the customer to
your custom error page as KP suggested.

In other scenario which has no asp files, you can customize the error page
in the main property as Alexander has suggested. In addition, you can also
customize the error page in the site property. You can disable your ie's
"show friendly http message" choice in Tools->options...->Advanced of IE,
then access your protected page and check the result http status code; for
example 401.1 etc. Then you click into custom errors tab from the property
window fo your web site and choose the error, press Edit... button to set
your custom error page to the specified error.

Please feel free to let me know if you have any further question.

Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 >> Stay informed about: Custome Error msg 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 6.0 Asp error - I have set up a test domain running 2003 server and IIS 6.0. When running a querry from new site I get the following error: SYNTAX ERROR IN QUERRY - INCOMPLETE QUERRY CLAUSE NUMBER - 2147217900 (0x80040E14) SOURCE : Microsoft JET Database Engine I have..

IIS Memory Error - Hi, I have suddenly started getting this error for a particular application on the IIS Server. (Only Transaction site on the box, others are static sites) Error: File xxxx Line 0 out of memory. Unable to allocate required memory.. I think this has...

iis & xp - http 500 error - I've just installed windows XP (with iis) on my home machine. As soon as I try accessing http://127.0.0.1 or http://localhost, I get an http 500 error. I've try a bunch of different things: 1. At one point, I even removed iis from the machine. I was....

ASP 0113 Error When Upgraded to IIS 6 - I upgraded my server from W2k to W2k3 which houses my intranet. Prior to the upgrade I had no problems with IIS 5 serving ASP pages, but now my ASP pages hang and returns this error: Active Server Pages error 'ASP 0113' Script timed out ..

DCOM Error - Everytime I try to browse the Default Web site it gives me a 500 error and the event log contains a DCOM error as shown below. Why is this happening? DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon .\IWAM...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]