But the output from certbot gives an invalid response from mydomain/.well-known/acme-challenge/…E-55A6jDmwDA/ https://i.imgur.com/VQFlrCh.jpg
As you can see in this las image, it tries to open a folder , I mean it adds a / at the end and of course it gives 404 because that folder does not exist. In case I could remove that / at the end I guess it should work… right?
PS: I cannot yet upgrade that Debian 7 / Apache 2.2.22 so I had to follow guidelines to downgrade certbot to 0.31.0 so I didn’t get pip problems etc.
You have to test your system from outside of itself and outside that local network to be sure.
Try the same curl statement from any other Internet connected device.
Also please share the HTTP vhost config file.
And double check that there are no overlapping names with: apachectl -S
<VirtualHost *:80>
ServerName www.mydomain.ar
ServerAlias mydomain.ar
DocumentRoot /var/www/www.mydomain.ar/public_html
<Directory /var/www/www.mydomain.ar>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
</VirtualHost>
And the output of apachectl -S
root@SRV02WEBPUB01:/etc/apache2# apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 SRV02WEBPUB01 (/etc/apache2/sites-enabled/default-ssl:2)
*:80 is a NameVirtualHost
default server SRV02WEBPUB01 (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost SRV02WEBPUB01 (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost www.mydomain.gov.ar (/etc/apache2/sites-enabled/www.mydomain.ar:1)
Syntax OK
That's not something certbot or the Let's Encrypt validation server tries to do. The URL in the error message is after any redirect from the target webserver has been processed. So first it tries without the /, the webserver - for some reason - redirects to with a / and that's the URL you'll see in the error message.
Please check if there is such a redirect in your configuration file(s) present.