[This is preliminary documentation and subject to change]
Adding a Custom Error Message
You can map custom error messages to a file or to a URL by using
the Custom Errors property sheet in the IIS snap-in.
To customize an error message by mapping to a file
- Create a file that contains your custom error message, and
place the file in a directory.
- In the IIS snap-in, select the
Web site, virtual directory, directory, or file in which you want
to customize HTTP errors, and click Properties.
- Select the Custom Errors property sheet.
- Select the HTTP error that you want to change.
- Click the Edit Properties button.
- Select File from the Message Type box.
- Type the path and file name that points to your customized
error message, or use the Browse button to locate the file
on your computer's hard disk.
- Click OK.
To customize an error message by mapping to a URL
- Create a file that contains your custom error message, and
place it in a virtual directory.
- In the IIS snap-in, select the
Web site, virtual directory, directory, or file in which you want
to customize HTTP errors, and click the Properties
button.
- Select the Custom Errors property sheet.
- Select the HTTP error that you want to change.
- Click the Edit Properties button.
- Select URL from the Message Type box.
- Type the URL which points to your customized error message by
entering the path to the URL beginning with the virtual directory
name.
- Click OK.
Notes
© 1997-2001 Microsoft Corporation. All rights reserved.