F
F
Farrukh Mahkamov2019-03-04 08:57:45
Digital certificates
Farrukh Mahkamov, 2019-03-04 08:57:45

What should I do to connect cerbot if there are several domains on the server with different paths to the site roots?

The server has 2 domains and one subdomain. The paths are different for domains. To obtain a certificate, you need to register the command
./certbot-auto certonly --webroot --agree-tos --email [email protected] -w /path/to/site/ -d my.domen.ru -d www. my.domen.ru
How to use a certificate for all domains and subdomains on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-03-04
@ky0

Use a path that is not associated with a specific site, and specify a separate location for the letsencrypt URL in the web server config /.well-known/acme-challenge.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question