Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1 2
Requesting a certificate for nullminimal.com and www.nullminimal.com
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version):
Server version: Apache/2.4.52 (Ubuntu)
Server built: 2023-10-26T13:44:44
The operating system my web server runs on is (include version):
I made no apache2 config changes. I setup the vhost file exactly the same way as the first one. I can serve the index.html file from http://nullminimal.com with no issue. https://nullminimal.com is trying to use the cert for zacksjoden.com. I don't know if that is related to the issue, normal, or will be resolved when I get a cert successfully generated for this second website.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
137.184.44.71:80 137.184.44.71 (/etc/apache2/sites-enabled/137_184_44_71.conf:1)
*:443 zacksjoden.com (/etc/apache2/sites-enabled/zacksjodencom-le-ssl.conf:2)
*:80 is a NameVirtualHost
default server nullminimal.com (/etc/apache2/sites-enabled/nullminimalcom.conf:1)
port 80 namevhost nullminimal.com (/etc/apache2/sites-enabled/nullminimalcom.conf:1)
alias www.nullminimal.com
port 80 namevhost zacksjoden.com (/etc/apache2/sites-enabled/zacksjodencom.conf:1)
alias www.zacksjoden.com
@rg305 I figured as much, but I can't figure out how/why.
Edit: Surely adding new virtualhost(s) and wanting a cert for them would be "normal" after setting up an initial site. I can't imagine it should be that complicated to add a new site and get another cert for that domain as well.
I created this one as I wanted to control what people saw when/if someone put in the IP directly. Also, both this and the nullminimal.com domains/vhosts were added after I successfully got a cert for the zacksjoden.com vhost: zack@zs-com-01:~$ cat /etc/apache2/sites-enabled/137_184_44_71.conf
This was auto-generated(I didn't create it) after running cert-bot successfully for my first domain/vhost. zack@zs-com-01:~$ cat /etc/apache2/sites-enabled/zacksjodencom-le-ssl.conf
Yeah, that's now how Apache works when you specify an IP address in the VirtualHost statement. Doing that creates an IP based VirtualHost which takes priority for any request for that IP and port. This is why proper HTTP requests are not going to the correct VirtualHost (your name-based ones)
It is fine to setup a default VirtualHost but just use a "fake" ServerName and have a VirtualHost like your others (with *:80). Place it as your first VirtualHost in the series. This will then catch any non-SNI request and SNI requests with the wrong domain names.
Yeah. I've been out of the web dev game for a few years. And even then it was just hobby LAMP based sites. Just started up a couple weeks ago trying to get back into it and this is my first time using LetsEncrypt.