hi,
first off, I apologize for having not responded a question about my previous bug report (identical to this one -- almost I'll try to be more elaborate this time around )
it was here:
and I really am sorry, please excuse me
this time, I did the same thing:
installed a new server, debian 10, and installed certbot, following exactly the instructions at this page:
https://certbot.eff.org/lets-encrypt/debianbuster-apache.html
and then I ran it,
and checked my virtual host file...
and I found the same "error" (problem)
which is:
in the mydomain-le-ssl.conf file,
after the ENDING "if_module" tag, which starts at the top of the page like this:
"IfModule mod_ssl.c
VirtualHost ip_address:443"
so, under
/VirtualHost
/IfModule
this appears:
IfModule mod_ssl.c
VirtualHost ip_address:80
AND the entire text which exists in
mydomain.conf
is placed here...
and I believe that this is the product of an erratic behavior... somehow...
I guess, apache can be configured in various ways...
the convention I follow is to have two separate files for the
"port-80" normal web connection, and the SSL connection...
like
mydomain.conf and mydomain-le-ssl.conf, respectively...
and in this case, the text (code) from mydomain.conf shouldn't appear in mydomain-le-ssl.conf
nevertheless,
whatever happens, the "port-80" connection's config text
shouldn't appear in a mod_ssl.c tag, right?
like this...
IfModule mod_ssl.c
VirtualHost ip_address:80
if this is not a bug, I'm sorry... but it really looks like that to me...
and once again, I'm sorry I didn't reply to that question..
Peter
PS:
it is because of this unwanted block of config code in the mydomain-le-ssl.conf file which screws up the "redirect permanent" command line (=makes it not to work)
hence the subject of this report
PS 2: I removed the code "brackets" (?) the less or larger than signs so that the code would be visible here...