Setting Up Custom Error Pages on Windows Servers

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

  1. Switch on support for custom error documents.
    1. Go to Websites & Domains and click the Hosting Settings button beside domain name you need.
    2. Select the Custom error documents checkbox.
    3. Click OK.
  2. Go to Websites & Domains and locate the domain name you need.
  3. Click Virtual Directories to see the list of error documents for the root web directory. Error documents located here are used for all web pages of the selected site. If you want to customize error pages for a specific virtual directory, navigate to that directory.
  4. Click Error Documents tab and click the required error document in the list.
  5. Once the web server is restarted, it will start using your error documents.