Previous Topic

Next Topic

Book Contents

Customizing Web Server Error Messages

When visitors coming to a site request pages that the web server cannot find, the web server generates and displays a standard HTML page with an error message. The standard error messages may inform of problems, but they do not usually say how to resolve them or how to get the lost visitor on his way, and they also look dull.

You may want to create your own error pages and use them on your web server. With Plesk you can customize the following error messages:

To configure Plesk's web server to show custom error pages for a domain:

  1. Switch on support for custom error documents through Plesk.
    1. Click the Domains shortcut in the navigation pane.
    2. Click the required domain name in the list.
    3. Click Setup.
    4. Select the Custom Error Documents check box.
    5. Click OK.
  2. If you access Plesk remotely, connect to your FTP account on the Plesk server, and go to the error_docs directory. If you access Plesk locally, go to the directory /vhosts/your-domain.com/error_docs/.
  3. Edit or replace the respective files. Be sure to preserve the correct file names:
  4. Restart your web server or wait for a few hours till your web server is restarted. After that, the web server will start using your error documents.