Loncapa server, no other web services, certbot fails re virtual host

No, that shouldn't be a problem. One hostname, one or two ip addresses - but a lot of domain names and vHosts.


Now I see:

Domainname Http-Status redirect Sec. G
http://loncapa.winona.edu/ 200 0.233 H
https://loncapa.winona.edu/ 200 2.196 N
Certificate error: RemoteCertificateNameMismatch, RemoteCertificateChainErrors

So there is no redirect. Your https works (accepting the wrong certificate there is a Login page), but uses the wrong self signed certificate.

So it looks that you have

  • deactivated your VirtualHost or
  • a standard configuration which is used instead.

So check your configuration if there is a /etc/apache2/sites-enabled/ directory with vHost-files.

And check, if there is a separate ssl.conf - file.

Somewhere must be something like

SLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt (or server.crt)
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key (or server.key)