Setting Up Custom Error Pages on Windows Servers

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.
    • 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 in the virtual host directory of the domain, select File in the Type menu and specify the file name in the Location field.
    • To use a custom HTML document located in a 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 consist of "http://<your domain name>" plus the path to the file relative to the virtual host root (that is, <vhosts>\<domain>\httpdocs).

      For example, your domain name is example.com, and you have created a file named forbidden_403_1.html and saved it in the httpdocs\my_errors directory. To use this file as an error document, you need to type the following URL into theLocation field: http://example.com/my_errors/forbidden_403_1.html.

      Note: Due to security reasons, you can not use a connection over FTP or File Manager in Plesk to upload your custom error document to the server. Use an RDP connection if the corresponding permission was granted to you, or contact your hosting provider for assistance.

  5. Once the web server is restarted, it will start using your error documents.
  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

Working with a Staging Site

Working with a Staging Site If you have a production website and are planning major site...

Setting Up Mobile Sites

Setting Up Mobile Sites Your service plan may include the option to create website copies...

Setting Up Custom Error Pages

Setting Up Custom Error Pages When visitors coming to a site request pages that the web server...

Hosting Personal Web Pages Under Your Domains

Hosting Personal Web Pages Under Your Domains You can host on your web server personal web pages...

Limiting Bandwidth and Number of Connections to Websites

Limiting Bandwidth and Number of Connections to Websites To avoid excessive usage of bandwidth,...