Difference between revisions of "Error Handling"
(→cPanel VPS) |
(→cPanel) |
||
Line 2: | Line 2: | ||
== cPanel == | == cPanel == | ||
+ | We have a video tutorial for this if you would rather watch it instead of reading below. | ||
+ | |||
+ | http://hostek.com/tutorials/cpanel-x3-error.html | ||
+ | |||
+ | |||
You will need to log into your cPanel and then click on Error pages in the Advanced section. | You will need to log into your cPanel and then click on Error pages in the Advanced section. | ||
Revision as of 21:00, 20 June 2012
Contents
cPanel
We have a video tutorial for this if you would rather watch it instead of reading below.
http://hostek.com/tutorials/cpanel-x3-error.html
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
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 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:
- Open IIS 7.5 from the desktop of your Windows or ColdFusion Windows VPS
- Click the name of your VPS server in IIS
- Double click "Error Pages" under the "IIS" section
- Click "Edit Feature Settings" under the "Actions" pane on the right
- 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