Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Prevent attempt to GET custom error message of certain HTTP errors

Discussion in 'General Discussion' started by consultant, Jan 5, 2016.

  1. consultant

    consultant Member

    Joined:
    Nov 18, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle
    cPanel Access Level:
    Root Administrator
    I've got a ModSecurity rule to precent referrer spam. It returns an error 406. However I also see that Cpanel is configured to try to GET /406.shtml so you can create a custom error message screen under that file. I don't want the server to attempt to get that file everytime a 406 error is thrown (but I may want to create custom 404 and 500 and other error messages). How to disable attempt to get custom error page for certain error numbers?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,671
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please let us know if the following thread is helpful:

    ErrorDocument

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice