Skip to main content

htaccess prevent cPanel AutoSSL to renew certificate

Comments

3 comments

  • cPanelMichael
    Hello, You can browse to "WHM >> Tweak Settings" and enable the following option under the "Domains" tab: "Use a Global DCV Passthrough instead of .htaccess modification (requires EA4)" Here's the description for this option: When you enable this option, Apache adds global rewrite rules to the webserver configuration so that the system does not process additional rewrite rules for DCV filenames. These global rules make it unnecessary for cPanel & WHM to modify each virtual host"s .htaccess file. Note: When you enable this option, the system receives a trivial performance penalty because all of the HTTP requests must be matched against the DCV filename regular expressions. Note this option is enabled by default in cPanel version 66. Thank you.
    0
  • psytanium
    any other solution ? i cannot enable it grayed out
    0
  • cPanelMichael
    any other solution ? i cannot enable it grayed out

    You may want to consider upgrading to EasyApache 4 to allow the use of that option. Otherwise, you can modify the existing rewrite rules in your .htaccess file to ensure the validation file is accessible. EX:
    HTTP(S)://fully.qualified.name/.well-known/pki-validation/
    You may need to disable each rewrite rule one at a time and then manually attempt to access a text file at the above path to verify it loads successfully. Thank you.
    0

Please sign in to leave a comment.