Custom Errors
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Custom Errors




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Custom Errors  
Andy Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-20-05 11:03 PM

Hi there,

Is it possilbe to redirect error pages (401, 404, etc), to a custom page
using ASP/VBScript.

I'd rather not use the custom errors tab in IIS as we have more than one web
site running on the IIS server.

Thanks very much/...





[ Post a follow-up to this message ]



    RE: Custom Errors  
Andy Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-20-05 11:03 PM

Forgot to say that I know you can define different error pages per virtual
directory, but would prefer, if possible, to do as asked above!!

Thanks/...

"Andy Smith" wrote:

> Hi there,
>
> Is it possilbe to redirect error pages (401, 404, etc), to a custom page
> using ASP/VBScript.
>
> I'd rather not use the custom errors tab in IIS as we have more than one w
eb
> site running on the IIS server.
>
> Thanks very much/...





[ Post a follow-up to this message ]



    Re: Custom Errors  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-21-05 12:51 PM

Hi,

This is not possible (AFAIK) using ASP. Either change the settings via IIS
Manager, use ISAPI Filter, or convert to ASP.NET (where you can specify
changes via web.config).

If you have access to the server, you can script the necessary changes
(using ADSI) to the metabase, so I don't really understand the argument
about having "lots of sites" as an impediment to doing this.

Cheers
Ken

--
Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com

"Andy Smith" <AndySmith@discussions.microsoft.com> wrote in message
news:507F4C28-E9CA-4538-A63C-E4E02E0E6EA6@microsoft.com...
: Forgot to say that I know you can define different error pages per virtual
: directory, but would prefer, if possible, to do as asked above!!
:
: Thanks/...
:
: "Andy Smith" wrote:
:
: > Hi there,
: >
: > Is it possilbe to redirect error pages (401, 404, etc), to a custom page
: > using ASP/VBScript.
: >
: > I'd rather not use the custom errors tab in IIS as we have more than one
web
: > site running on the IIS server.
: >
: > Thanks very much/...







[ Post a follow-up to this message ]



    Re: Custom Errors  
David Wang [Msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-22-05 01:47 AM

This is how to "redirect" error pages to custom page handlers.

Use the custom error tab in IIS at the global (or website) level (so that
its settings inherit down to child nodes [unless you specifically overri
de
them), and set up each custom error in the tab to directly call your own
custom page via a single URL.

i.e. You have a custom error page located at:
/bin/CustomErrors.asp

You change IIS custom errors at the global level to map all custom error
handlers to URL of /bin/CustomErrors.asp

Now, every single error that happens on IIS will be routed through
/bin/CustomErrors.asp. Except for the 401 errors.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Andy Smith" <AndySmith@discussions.microsoft.com> wrote in message
news:05EB6D4B-22E1-4B64-B8E4-300D591E1534@microsoft.com...
Hi there,

Is it possilbe to redirect error pages (401, 404, etc), to a custom page
using ASP/VBScript.

I'd rather not use the custom errors tab in IIS as we have more than one web
site running on the IIS server.

Thanks very much/...







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register