python3-certbot-apache
/etc/apache2/sites-available/your_domain.conf
Код: Выделить всё
...
ServerName your_domain
ServerAlias www.your_domain
...Код: Выделить всё
apache2ctl configtestКогда синтаксис файла конфигурации станет корректным, перезагрузите Apache, чтобы изменения вступили в силу:
Код: Выделить всё
systemctl reload apache2https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04-ru