var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
cPanel/WHM custom 403 page for all accounts?
how to custom 403,404,500 page for all accounts?i want to do it on server wide by cPanel/WHM.
You can do this for an account from cPanel.
cPanel >> Advanced >> Error Pages
<<Signature to be setup in your profile>>
Last edited by anon-e-mouse; 05-08-2011 at
i am sorry, i want to do it on server side, to all the accounts on the server not a single user?
The above should load the relevant error page from "/usr/local/apache/errorfolder/" for every domain on the server, unless a custom one is set within an HTACCESS file. You can use whatever names/paths that you want.
Alias /errorfolder /usr/local/apache/errorfolder
ErrorDocument 400 /errorfolder/400.shtml
ErrorDocument 401 /errorfolder/401.shtml
ErrorDocument 403 /errorfolder/403.shtml
ErrorDocument 404 /errorfolder/404.shtml
ErrorDocument 500 /errorfolder/500.shtml
█ GG Web Hosting
█ S/W: Peel Ads, Softaculous, WHMCS Addons (Abuse Mon., Affiliate Peel Ads, Client Stat., Ord. Prevention, Ord. Stat., Softaculous NOC, Sys. Cleanup)
█ Authorized Reseller Program
is there a way to add the code in httpd.conf by WHM?
Not quite, you can configure some variables for httpd.conf from Apache Configuration but that's about it.
- cPanel, Linux, Virtualization tutorials, guides and more
By runeveryday in forum Web Hosting
Last Post: 05-08-2011, 05:22 AM
By MH-Andy in forum Hosting Security and Technology
Last Post: 04-04-2009, 04:55 PM
By 2DollarWebHosting in forum Running a Web Hosting Business
Last Post: 01-30-2006, 05:27 PM
By Popiah in forum Hosting Software and Control Panels
Last Post: 09-06-2003, 01:35 PM
By BMurtagh in forum Hosting Security and Technology
Last Post: 10-06-2002, 06:24 PM