Solved

Custom message instead of standard HTTP error 404 with IIS?

Posted on 1998-09-11
4
205 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thanks a lot.
we will consider upgrading to IIS4
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

744 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

16 Experts available now in Live!

Get 1:1 Help Now