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

Now the web server will show custom error pages.