Knowledgebase
How to add Custom Errors in WSP (WebsitePanel)
Posted by - NA - on 30 November 2009 11:34 PM

Customers using WSP (aka WebsitePanel), can create custom error pages instead of the default error pages provided by the server.

You can create any type of error page with any language you prefer (ie. ASP, HTML or even PHP).

Then follow these steps:

  1. Log into your WebsitePanel Hosting Space(WSP Control Panel)
  2. Mouseover Web and click Web Sites

  3. Click the domain you want to modify under Web Sites

  4. Click on the Custom Errors tab
  5. Click Add Custom Error

  6. Now add custom error pages as follows:
    • Code should be the error code, like: 404
    • Handler Type: Execute URL
    • Error Content should be the relative path to your wwwroot directory: /errors/404-not_found.html
  7. Click Update to save your custom error.


Attachments 
 
 001.png (32.92 KB)
 002.png (7.00 KB)
 003.png (1.39 KB)
 004.png (1.64 KB)
 005.png (12.74 KB)
(118 vote(s))
Helpful
Not helpful

Comments (1)
Evgeny Chauskey
03 January 2011 12:05 AM
Sometimes this is not enough, so after all actions of above you have to check your web.config file, <httpErrors> section of <system.webServer> (actually, all the operations have added this section, you will see there the reference to your custom error file).
So, you just add following 'errorMode' attribute to the section like this:

<httpErrors errorMode="Custom">

Default value of the attribute is "Detailed", that can make your custom error handling inefficient.
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).