I created a subdomain (sub1.domain.com) in DirectAdmin. I then added the following custom HTTPD config:
So this accomplishes two things:
I like this solution, but there's a problem… sub2.domain.com doesn't show up in the list of Let's Encrypt Certificate Entries, so I can't automate SSL/TLS certificates for it. I don't want this subdomain to show up in the list for other users, so I can't add it to the letsencrypt_list.
What's the simplest way to fix this? Or am I going about it the wrong way?
Code:
|*if SUB="sub1"|
|?SDOCROOT=/var/www/html/`SUB`|
|?SERVER_ALIASES=`SERVER_ALIASES` sub2.`DOMAIN`|
|*endif|
So this accomplishes two things:
- Points the subdomain to the web app at /var/www/html/sub1
- Creates an additional alias (sub2.domain.com), which points to the same place.
I like this solution, but there's a problem… sub2.domain.com doesn't show up in the list of Let's Encrypt Certificate Entries, so I can't automate SSL/TLS certificates for it. I don't want this subdomain to show up in the list for other users, so I can't add it to the letsencrypt_list.
What's the simplest way to fix this? Or am I going about it the wrong way?