How To Remove Proxy Subdomains for AutoSSL

kylejlarson

Registered
Dec 14, 2017
2
0
1
Minneapolis, MN
cPanel Access Level
Root Administrator
AutoSSL tried to renew it's certificates on my server but failed for a number of domains because of 404s on the Proxy Subdomains (whm.domain.com, cpanel.domain.com, etc) when trying to find the temporary files it creates.

I don't really need those proxy subdomains, so I disabled them in WHM. The AutoSSL errors still exist for those subdomains. I've found that if I manually remove the domains from cPanel and re-add them the issue is resolved (as I assume those subdomains are no longer recreated).

I'd like to find a way, if possible, to remove the subdomains without having to manually remove/add all my domains. I tried SSHing into the server & running "/scripts/proxydomains remove" which executed and said no changes needed for all domains. So that didn't solve the issue.

Is there any other way to make sure the proxy subdomains no longer exist and the AutoSSL script doesn't look for them?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Is there any other way to make sure the proxy subdomains no longer exist and the AutoSSL script doesn't look for them?
Hello,

If you don't want to use proxy subdomains at all on your system, then you'd need to first disable the "Proxy Subdomains" option under the "Domains" tab in "WHM >> Tweak Settings". You'd then use the following command to remove any proxy subdomain DNS records on your existing accounts:

Code:
/scripts/proxydomains remove
Note that if the proxy subdomain DNS records exist during the initial AutoSSL attempt, then you may still see the AutoSSL error messages for a brief period until the AutoSSL feature runs a new check.

Thank you.