In order to redirect properly http to default conf file when you have enabled SSL, you need to set both port 80 and port 443 in your conf file.
And to well set default ssl conf.
Note: Commissions may be earned from the links above.
This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.
Let's Encrypt can be quite difficult to setup at first, you will have to read different tutorial on the Web in order to understand how it works.
Here ...
The content of the file named options-ssl-apache.conf can help you to determine how to setup a file for a SSL version of your virtual host configuration ...