To configure Plesk's web server to show your custom error pages:
- 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 Documents tab 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 Type menu.
- To use a custom HTML document already located in the
error_docs
directory 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_docs
on 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,\\httpdocs
).For example, you have created a file
forbidden_403_1.html
and saved it in themy_errors
directory located in thehttpdocs
. To use this file as an error document, the following path should be entered in the Location filed:/my_errors/forbidden_403_1.html
.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
/vhosts/your-domain.com/error_docs/
directory.
- Once the web server is restarted, it will start using your error documents.