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.
My web server is (include version):
Apache/2.4.41
The operating system my web server runs on is (include version):
20.04.3 LTS (Focal Fossa)
My hosting provider, if applicable, is:
Oracle OCI
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):
certbot 1.18.0
<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.
ServerName wtxcotton2.uashubs.com
ServerAlias www.wtxcotton2.uashubs.com
ServerAdmin hamdori@gmail.com
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
RewriteEngine off
RewriteCond %{SERVER_NAME} =wtxcotton2.uashubs.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Well something is definitely preventing that vhost from being served.
The vhost clearly shows that ALL requests should be redirected to HTTPS.
But we can see from the failed LE challenge request:
VirtualHost configuration:
*:443 is a NameVirtualHost
default server agrilife.hub.gdslab.org (/etc/apache2/sites-enabled/agrilife.hub.gdslab.org-le-ssl.conf:2)
port 443 namevhost agrilife.hub.gdslab.org (/etc/apache2/sites-enabled/agrilife.hub.gdslab.org-le-ssl.conf:2)
alias www.agrilife.hub.gdslab.org
port 443 namevhost agrilife.uashubs.com (/etc/apache2/sites-enabled/agrilife.uashubs.com-le-ssl.conf:2)
alias www.agrilife.uashubs.com
*:80 wtxcotton2.uashubs.com (/etc/apache2/sites-enabled/wtx_cotton.conf:1)
and you only showed three lines?
Please show them all.
At least three more lines are left unshown.
And likely where the problem may lie.
OR
I am confused... and we just need to look at those three to find your problem.
[well two others, we already saw one of them]