Configuration file with different webroot's


#1

According to this http://letsencrypt.readthedocs.org/en/latest/using.html#configuration-file 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?


#2

Hello @ambiente1,

You could use webroot-map option.

Config file using your examples:

authenticator = webroot
rsa-key-size = 4096
text = True
webroot-map = {"domain.com,www.domain.com":"/srv/www/customer/domain.com/www", "beta.domain.com":"/srv/www/customer/domain.com/beta"}

Cheers,
sahsanu


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.