Hi, I know this question came up several times but I couldn’t find an answer to the issue I am experiencing.
I am running a Debian 9 (stretch) dedicated server with all my client’s websites. LetsEncrypt is installed on all domain names, redirections work flawlessly, and yet I have an issue configuring phpMyAdmin to be secured.
phpMyAdmin runs by default in /usr/share/phpmyadmin
I created a virtual host “db.mydomain.com” that points to the phpMyAdmin directory, instead of using the default “hostname/phpmyadmin”.
I also set phpMyAdmin to run on port 8888 and secured this port (and others) on my firewall so that only I can access them from my fixed IP.
Now, when trying to create a certificate for db.mydomain.com with the following command:
certbot --authenticator webroot --installer apache
I select the db.mydomain.com from the domains list and get the following error:
I get the following error:
Failed authorization procedure. db.mydomain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://db.mydomain.com/.well-known/acme-challenge/_nYb5erdCSqSepU8ZcY5rtY0iDnjtB1yCZwYVdKXZ1I [xxx.xxx.xxx.xxx]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
Any ideas what I am doing wrong?