Solved

Custom message instead of standard HTTP error 404 with IIS?

Posted on 1998-09-11
4
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 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