The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page