htaccess prevent cPanel AutoSSL to renew certificate

psytanium

Well-Known Member
Jun 6, 2014
322
19
68
Lebanon
cPanel Access Level
Root Administrator
Hello,

Apparently every 3 months the cPanel certificates auto renew, but 1 of my domains is prevented to renew because of htaccess, so every time I have to delete the htaccess file, auto renew SSL from WHM, then upload the access file again.

I attached the htaccess file, please can someone tell me what line to remove or to add ?

Thanks
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
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:

Code:
HTTP(S)://fully.qualified.name/.well-known/pki-validation/<filename.txt>
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.