Solved

Custom message instead of standard HTTP error 404 with IIS?

Posted on 1998-09-11
4
207 Views
Last Modified: 2010-04-09
I'm not sure if this question belongs in this group, because it is actualy an IIS question (I think). I hope someone can answer it.
We have a web server (Internet Information Server). If an internet user requests a page that is not on our server, he will get an HTTP error 404. I've seen some other website that return a custom html-file that tells you that this page doesn't exist. That is what I want too, but how do I do it?
0
Comment
Question by:marcelgr090398
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
raoool earned 100 total points
ID: 1837561
Which version of IIs?

Creat a normal HTML file to be the error message.

If 4.0, launch Management Console (Internet Service manage under NT OptionPack) select the site/directory, Properties (right mouse click) Select Custom Errors and then the Error 404 -- pick file.
0
 

Author Comment

by:marcelgr090398
ID: 1837562
I'm sorry, I didn't provide very much information.
We have Windows NT Server 4.0 SP2 running IIS 3.0
We don't have Microsoft Management Console, or Option Pack.
We use Internet Service Manager that comes with IIS3.0
I can not find any setting in Internet Service Manager to select a custom file for the 404 error (or any error).

Is it posible with IIS4 to use a custom 404 error page on a per server basis, or also on a per web basis?

Marcel
0
 
LVL 4

Expert Comment

by:raoool
ID: 1837563
Marcel,

Yes and yes. (you can use a custom message -- WITH IIs4 --  on a per server and per Web basis). Recommend you get SP3 for NT and also the OptionPak which upgrades IIs to version 4. OptionPak is a huge download (40MB+) but solves the error issue; has better logging options, etc. The Management Console (Internet Service Manager for IIs4) is in the OptionPak -- very different from what you've seen with IIs3, but it works.

I THINK IIs3 allowed you to define a single custom error message via the registry, but have purged that from memory at this point.

Only hesitation to doing this upgrade would be if you've done a lot of ASP or ISAPI scripting under 3.0. [CGIs may need some changes -- our biggest headbanger involved header issues dealing with http1.0 (all but IE4+) and http1.1 (IE4) clients].

Good luck!

Raoool
0
 

Author Comment

by:marcelgr090398
ID: 1837564
thanks a lot.
we will consider upgrading to IIS4
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using Classic ASP inside HTML pages 2 56
Poster Video HTML 5 Scale to fit video 3 37
Form with Modals 16 44
Alignment is not working correctly. 8 32
This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now