Skip to main content

whm/cpanel + wordpress = incorrect error status codes

Answered

Comments

6 comments

  • cPRex Jurassic Moderator

    Hey there!  We actually have an option for this in WHM >> Tweak Settings.  Currently it's the very last option in the list:

    "Copy default error documents to docroot for new accounts, addon domains, and subdomains"

    so I believe enabling that would resolve the issues you're seeing for all newly created accounts without manual work.

    You could always turn that on, create a new fake account, and then use those files to copy them over to other accounts.

    0
  • MHFraser

    Hi cPRex,

    thanks I'll try it.

    "When enabled, the system copies the default error documents to the document root directory when you create new accounts, addon domains, and subdomains. By copying the default error documents to the document root, this ensures that the global ErrorDocument configuration has the files it needs to prevent generating additional errors."

    out of interest why isn't this just on by default?

    0
  • cPRex Jurassic Moderator

    I think the most honest answer is "because this is relatively newer and people strongly dislike change" 

    0
  • MHFraser

    understand. FWIW I keep encountering this mitigating bots. wordpress wastes too many cpu cycles generating pretty 404 pages for bots 

    0
  • MHFraser

    followup for any future readers in the same boat.

    I ended up commenting out the ErrorDocument for a handful of codes I'm using in the included "/etc/apache2/conf.d/includes/errordocument.conf" file. 

     

    Effectively these codes are 'system reserved' and cant have custom errordocuments by users. Not a big deal. no user has customised an error document anyway.

    0
  • cPRex Jurassic Moderator

    I'm glad you came up with a good workaround!

    0

Please sign in to leave a comment.