so, whenever I try to renew my certificate I keep getting the “404 Not Found” error. What makes this really annoying is that it’s only happening for this one domain. The others can be renewed. I also went ahead an removed the old (about to be expired) certificate using " sudo certbot delete --cert-name example.com" command and tried generating a new one with the command mentioned below (… certbot --apache -d …). I am stuck and have no idea how to get this fixed. Your help would be greatly appreciated!
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version): Apache 2.4.29 The operating system my web server runs on is (include version): Ubuntu 18.04.4 LTS My hosting provider, if applicable, is:contabo.com I can login to a root shell on my machine (yes or no, or I don’t know): yes I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.31.0
That could suggest that there is some overlap in your virtual host configuration which messes with the Certbot authenticator. It’s technically a nonsensical configuration, but Apache doesn’t treat it as an error for some reason.
*:80 is a NameVirtualHost
default server gomotech.net (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost gomotech.net (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost gomotech.net (/etc/apache2/sites-enabled/gomotech.net.conf:1)
alias www.gomotech.net
Alright, did that & the issue is fixed. Is there a way to have both of them “active”, I mean, I’d like to have default page (which you saw before) load if someone enters the server IP. Do I just enable it again & disable during the next cert renew?
You're talking here about the "000-d.." vhost? if so, I'm a bit confused because that one doesn't have "Servername" defined in it. It's pretty much default content.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly. #ServerNamewww.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf