Configuring Custom Error Messages for a Web Site, Application, or Virtual Directory
InstallShield 2020
Project:This information applies to the following project types:
When an end user tries to connect to a Web site and a hypertext transfer protocol (HTTP) error occurs, the end user’s browser displays a default message describing the error. You can have your installation configure IIS so that it uses custom error messages instead of the default error messages by mapping the HTTP error codes to a file or a URL.
To configure custom error messages for a Web site, application, or virtual directory:
|
1.
|
Create a file that contains your custom error message and add it to your installation. |
|
2.
|
In the View List under Server Configuration, click Internet Information Services. |
|
3.
|
Select the Web site, application, or virtual directory for which you want to customize HTTP error messages. The settings for the Web site, application, or virtual directory are displayed on the right. |
|
4.
|
In the Custom Errors setting, click the ellipsis button (...). The Custom Errors dialog box opens. |
|
5.
|
Select the HTTP error code that you want to change and then click the Edit Properties button. The Error Mapping Properties dialog box opens. |
|
6.
|
To map the error code to a file: |
|
a.
|
In the Message Type list, select File. |
|
b.
|
In the File box, type the path and file name that points to the custom error message in your installation, or click the browse button to locate the file. |
To map the error code to a URL:
|
a.
|
In the Message Type list, select URL. |
|
b.
|
In the URL box, type the URL that points to your custom error message. |
See Also
Error Mapping Properties Dialog Box