Certbot redirectrion from vhost port 80 to 443 and vhost declaration

Hi
I am a new user of certbot and I find it very useful but one thing is strange for me.
When you are installing new certificate and choosing that the website should be accessible only with SSL (HTTPS port 443) the vhost file is being cloned with SSL lines included and the original one gets some mod rewrite rules.
I think that it would be much more practical and easier to just add SSL certs lines to the existing file and a declaration of standard vhost like this:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
Redirect / https://example.com

For now the configuration is being cloned and stored in 2 files which is a bit messy. What do you think about it?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.