- Switch on support for custom error documents through Plesk.
- On your Home page click Setup.
- Select the Custom Error Documents check box.
- Click OK.
- Click Web Directories on your Home page to see the list of error documents for the root web directory (error documents located here are used for all domain web pages). If you want to customize error pages for a certain web directory, go to that directory.
- Click Error Documentstab and click the required error document in the list.
- To use the default document provided by IIS for this error page, select Default in the Typemenu.
- To use a custom HTML document already located in the
error_docsdirectory on a domain, select File in the Type menu and specify the file name in the Location field.
- To use a custom HTML document located in directory other than
error_docson a domain, select URL in the Type menu and enter the path to your document in the Location field. The path should be relative to the virtual host root (that is,
For example, you have created a file
forbidden_403_1.htmland saved it in the
my_errorsdirectory located in the
httpdocs. To use this file as an error document, the following path should be entered in the Location filed:
Note. You can use both FTP and File Manager to upload your custom error document to the server. By default, all error documents are stored in the
- Once the web server is restarted, it will start using your error documents.