Can't connect to website after installing certbot on apache

You can remove this line:

from the file:

That will force ALL names to redirect to HTTPS.
[instead of adding more and more names to that list as your vhost list grows]

2 Likes