Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
Oddly enough, I get 404 when I try that URL [via IPv6 and IPv4].
So, it may not be an Apache configuration issue...
Do you use anything that would block access based on source IP?
OR
Have you since made a change that would explain the 403 / 404 discrepancy?
Strange. Apache runs on a Hetzner server wide wide away, and i can access pmadmin.qno.de and pmadmin.qno.de/letsencrypt.log both from safari on iPad from my home wlan. So i get a connection from outward through nftables without further authentification. Port 80 is definetly open.
Direct access by ip will not work as itβs a name virtual host.
The problem is cause [indirectly] by the use of the --apache plugin:
2023-12-19 00:08:24,087:DEBUG:certbot_apache._internal.http_01:Adding a temporary challenge validation Include for name: pmadmin.qno.de in: /etc/apache2/sites-enabled/a02-phpmyadmin.conf
2023-12-19 00:08:24,087:DEBUG:certbot_apache._internal.http_01:Adding a temporary challenge validation Include for name: None in: /etc/apache2/sites-enabled/000-default.conf
2023-12-19 00:08:24,087:DEBUG:certbot_apache._internal.http_01:writing a pre config file with text:
RewriteEngine on
RewriteRule ^/\.well-known/acme-challenge/([A-Za-z0-9-_=]+)$ /var/lib/letsencrypt/http_challenges/$1 [END]
2023-12-19 00:08:24,087:DEBUG:certbot_apache._internal.http_01:writing a post config file with text:
<Directory /var/lib/letsencrypt/http_challenges>
Require all granted
</Directory>
<Location /.well-known/acme-challenge>
Require all granted
</Location>
I suspect that something in the overall code is conflicting with the [temporary] modifications that certbot makes.
Let's have a look at this file: /etc/apache2/sites-enabled/a02-phpmyadmin.conf
Then you can retry with: certbot certonly --apache --debug-challenges
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
Include /etc/apache2/le_http_01_challenge_post.conf
</VirtualHost>