Add a separate SSL certificate for a subdomain in Directadmin

by

in

Directadmin doesn’t have possibility to add SSL certificate for a subdomain, unless You add it as a separate domain in domain control.

You may also use separate SSL certificates by creating a custom httpd (or nginx, but it would require to change the CAROOT line) file in user configuration dir i.e. loginroot.com.cust_httpd (or loginroot.com.cust_nginx if it’s nginx).

|*if SUB="subdomain"|
	|?KEY=/usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.key|
	|?CERT=/usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.cert|
	|?CAROOT=SSLCACertificateFile /usr/local/directadmin/data/users/loginroot/domains/subdomain.loginroot.com.cacert|
|*endif|

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.