Add SSL for subdomain

JelleG

Verified User
Joined
Jun 3, 2015
Messages
57
Hi,

I want to keep my current folder structure inside by public_html folder.
But I want to serve some of the folders trough subdomain.

Our main domain uses a EV SSL Comodo certificate, so it does not support wildcard.

I want to serve the subdomains also over SSL, so I need to install a SSL for the subdomain.

How can I install a new separate SSL for the subdomain?
 
Hello,

1. Add a subdomain (e.g. sub.example.com) as a regular domain with its own public_html and private_html
2. Use either symlinks to link public_html and private_html:

Code:
 /home/userbob/domains/sub.example.com/public_html/    =>  /home/userbob/domains/example.com/public_html/sub/
 /home/userbob/domains/sub.example.com/private_html/  =>   /home/userbob/domains/example.com/public_html/sub/

or change DOCROOT for sub.example.com to /home/userbob/domains/example.com/public_html/sub/ (https://help.directadmin.com/item.php?id=199)

where you should replace:

userbob with a real username
sub.example.com with a real domain name
example.com with a real domain name
 
Back
Top