Vhosts creation change #63
Loading…
Reference in New Issue
No description provided.
Delete Branch "cert_check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changed the way vhosts are created. This is to prevent situation where https vhosts are created without corresponding certificate which is causing error. Solution to that is to check if ssl cert exists for vhost before creating them.
Suggested approach is to create vhost called '01.letsencrypt' or
01.domain.ltd
usingletsencrypt
template. This will allow new certificates to be created for upcoming vhosts and once certs are created, nginx will be able to create vhosts and not error out. (so first run letsencrypt and then nginx).Currently vhost creation and enabling is done separate for HTTP and HTTPS vhosts. Not the best solution, but works for now.