Setting Up Custom Error Pages on Linux Servers

To configure the web server to show custom error pages for a site:

  1. Switch on support for custom error documents.
    1. Go to Websites & Domains and click Hosting Settings in a website settings pane.
    2. Select the Custom error documents checkbox.
    3. Click OK.
  2. Connect to your FTP account, and go to the error_docs directory.
  3. Edit or replace the respective files. Be sure to preserve the correct file names:
    • 400 Bad File Request - bad_request.html
    • 401 Unauthorized - unauthorized.html
    • 403 Forbidden/Access denied - forbidden.html
    • 404 Not Found - not_found.html
    • 405 Method Not Allowed - method_not_allowed.html
    • 406 Not Acceptable - not_acceptable.html
    • 407 Proxy Authentication Required - proxy_authentication_required.html
    • 412 Precondition Failed - precondition_failed.html
    • 414 Request-URI Too Long - request-uri_too_long.html
    • 415 Unsupported Media Type - unsupported_media_type.html
    • 500 Internal Server Error - internal_server_error.html
    • 501 Not Implemented - not_implemented.html
    • 502 Bad Gateway - bad_gateway.html
    • 503 Service Temporarily Unavailable - maintenance.html

The web server will start using your error documents in a few hours, after it is restarted.

 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.