Difference between revisions of "Error Handling"

From Hostek.com Wiki
Jump to: navigation, search
(cPanel)
Line 2: Line 2:
  
 
== cPanel ==
 
== cPanel ==
 +
You will need to log into your cPanel and then click on Error pages in the Advanced section.
 +
 +
To edit an error page:
 +
 +
1. Click the error code for the page you wish to edit.
 +
<pre style="color:red"> If you don’t see the error code for the page you wish to edit, click the Show All HTTP Error Status Codes tab.</pre>
 +
 +
2. Type a message into the text box. ◦ You can select certain HTML tags to be added to a custom error page. These tags will display facts on the error page about the visitor accessing your website.
 +
<pre style="color:red">You can further customize your error pages by keying in HTML code. </pre>
 +
 +
3. Click Save.
 +
 +
Alternatively you can design these pages offline and upload them via FTP like normal pages to your public_html folder. Remember, these files must have the .shtml extension.
 +
 +
i.e.
 +
 +
*400.shtml
 +
*401.shtml
 +
*403.shtml
 +
*404.shtml
 +
*500.shtml
  
 
== Windows based (WCP) ==
 
== Windows based (WCP) ==

Revision as of 20:50, 20 June 2012


cPanel

You will need to log into your cPanel and then click on Error pages in the Advanced section.

To edit an error page:

1. Click the error code for the page you wish to edit.

 If you don’t see the error code for the page you wish to edit, click the Show All HTTP Error Status Codes tab.

2. Type a message into the text box. ◦ You can select certain HTML tags to be added to a custom error page. These tags will display facts on the error page about the visitor accessing your website.

You can further customize your error pages by keying in HTML code. 

3. Click Save.

Alternatively you can design these pages offline and upload them via FTP like normal pages to your public_html folder. Remember, these files must have the .shtml extension.

i.e.

  • 400.shtml
  • 401.shtml
  • 403.shtml
  • 404.shtml
  • 500.shtml

Windows based (WCP)

  • Login to WCP
  • In the Website Settings section, click on IIS Settings
  • Click the pencil/edit icon to change the handling for the specific error code
  • The Help in WCP has additional information

cPanel VPS

Windows VPS

You can change what type of error pages are served from your Windows or ColdFusion Windows VPS in IIS by using the following steps:

  1. Open IIS 7.5 from the desktop of your Windows or ColdFusion Windows VPS
  2. Click the name of your VPS server in IIS
  3. Double click "Error Pages" under the "IIS" section
  4. Click "Edit Feature Settings" under the "Actions" pane on the right
  5. Select the type of error pages you would like to be displayed for your sites on the VPS (the types of error pages are described below)

Types of Error Pages

  • Custom error pages - Will display any custom error pages you have set up in the WCP
  • Detailed error pages - Will display either an IIS error page, or a ColdFusion error page depending on what type of file is being served
  • Detailed error pages for local requests, custom error pages for remote requests - Any requests coming directly from the VPS server will display detailed error pages, any requests from outside the VPS server will display custom error pages


ColdFusion