According to this User Guide The Let’s Encrypt project — letsencrypt latest documentation i want to create a configuration file for a website with different webroot's while using a subdomain.
Before (results in a single certificate for ALL domains):
letsencrypt-auto certonly --renew-by-default -a webroot -w /srv/www/customer/domain.com/www -d domain.com -d www.domain.com -w /srv/www/customer/domain.com/beta -d beta.domain.com
After (results in a single certificate for EVERY domain):
letsencrypt-auto --config /etc/letsencrypt/configs/domain.com/www.conf certonly
authenticator = webroot
domains = domain.com, www.domain.com
rsa-key-size = 4096
text = True
webroot-path = /srv/www/customer/domain.com/www
letsencrypt-auto --config /etc/letsencrypt/configs/domain.com/beta.conf certonly
authenticator = webroot
domains = beta.domain.com
rsa-key-size = 4096
text = True
webroot-path = /srv/www/customer/domain.com/beta
How do i include the part for beta.domain.com and serving a separate webroot-path?