My domain is: notjustdetails.com , www.notjustdetails.com
I ran this command: sudo certbot --apache
I tried a few days ago and failed the listening at port 80.
Today I figured that out and added to my httpd.conf
Listen 80
<VirtualHost *80>
ServerName notjustdetails.com
ServerAlias www.notjustdetails.com
Redirect permanent / https://www.notjustdetails.com
I ran the same sudo certbot —apache and received a successful message
but the site does not go to SSL. When I checked the URL with SSL labs, I received the RemoteCertificateNameMismatch error and RemoteCertificateChainErrors
I also went to the [https://check-your-website.server-daten.de] site and saw that some of my images were by IP so I changed the server alias to include the IP. I also noticed that the Redirect should be
Redirect permanent / https://notjustdetails.com (not with www) so I changed that too
I also saw certbot had added rewrite lines to the virtualhost, so it was like the examples I see. So currently httpd.conf has
<VirtualHost *80>
ServerName notjustdetails.com
ServerAlias www.notjustdetails.com xxx.xxx.xx.xxx
Redirect permanent / https://notjustdetails.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.notjustdetails.com [OR]
RewriteCond %{SERVER_NAME} =notjustdetails.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
I tried sudo certonly --apache and it did not work
I checked the httpd-le-ssl.conf
and it still had my old redirect
so I tried again with sudo certbot --apache
Option 1: Attempt to reinstall this existing certificate
Option 2: Redirect
It generated this error message but says it was otherwise successful
Failed redirect for notjustdetails.com
Unable to set enhancement redirect for notjustdetails.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection
IMPORTANT NOTES - We were unable to set up enhancement redirect for your server, however, we successfully installed your certificate.
…
The URL still does not go to ssl and I get the same errors
So I just tried changing the redirect line in httpd-le-ssl.conf which still pointed to the www address.
I decided to manually edit the Redirect Permanent line
Now it looks like
<VirtualHost *80:443>
ServerName notjustdetails.com
ServerAlias www.notjustdetails.com
Redirect permanent / https://notjustdetails.com/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/notjustdetails.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/notjustdetails.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/notjustdetails.com/chain.pem
and it still doesn’t work
I’m really new to this and I’m not sure how to get my certificate to have the correct name.
I noticed I don’t have any separate 443 virtual host lines. Do I need one in httpd? Do I need to separate the one virtual host that was created in the SSL conf?
Thanks in advance for your help
I feel very stuck with this
My web server is (include version): Digital Ocean droplet
The operating system my web server runs on is (include version): CentOS7
My hosting provider, if applicable, is: none
I can login to a root shell on my machine (yes or no, or I don’t know): Y
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): N
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot): current - this is a new install
Thanks!
Christine