Skip to main content

Can you make a custom 503 error page server wide?

Comments

5 comments

  • 24x7server
    Hi, Customization can be done, however, you will look for such files in your cPanel install builds.. Check the below link and see if that can point it out at the direction you want: Web Template Editor - Version 70 Documentation - cPanel Documentation
    0
  • WebHostPro
    Hmm, I couldn't find a way on there. Thanks though. If I added a 503 error page in the users public_html folder will that load? 503.shtml for example? Ideally I would just edit the server page for that error but added the file is a good work around.
    0
  • 24x7server
    Hi, You can add something like below in the .htaccess file of the user account inside public_html and then create the respective 503 file. ---------- ---------- ErrorDocument 503 /503.shtml ---------- ----------
    0
  • WebHostPro
    Good idea, this means I'll have to have custom htaccess file that will be added to new accounts from the default folder section in the root of the server. You don't think this will cause any issues. Just thinking the server or cPanel might not be happy about not being able to add a their htaccess file with the new account.
    0
  • cPanelMichael
    Hello, You could manually edit error pages such as /var/www/html/404.shtml if you wanted a custom default 404 error page. Or, simply create custom error pages (e.g. 404.shtml) in the document roots of the websites (e.g. /home/user/public_html). Custom .htaccess entries are not required when uploading the custom error pages to the document roots. Thank you.
    0

Please sign in to leave a comment.