Failed redirect for wo-lar.com

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

Many times asked, but I am unfortunately not able to fix it.
Thanks for helping

My domain is: wo-lar.com

I ran this command: certbot -v install --cert-name wo-lar.com-0001

It produced this output:
aving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator None, Installer apache
Deploying certificate
Deploying Certificate to VirtualHost /etc/httpd/conf.d/vhost-le-ssl.conf
Successfully deployed certificate for wo-lar.com to /etc/httpd/conf.d/vhost-le-ssl.conf
Failed redirect for wo-lar.com
Unable to set the redirect enhancement for wo-lar.com.
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection

My web server is (include version): httpd-2.4.37-51.module+el8.7.0+1059+126e9251.x86_64

The operating system my web server runs on is (include version): Rocky Linux, 4.18.0-425.10.1.el8_7.x86_64

My hosting provider, if applicable, is:

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.22.0

My vhost.conf

<VirtualHost *:80>
    DocumentRoot /var/www/html
    ServerName www.wo-lar.com
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_NAME} =www.wo-lar.com [OR]
RewriteCond %{SERVER_NAME} =wo-lar.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Thank you for your help.

Wolfgang

1 Like

Your most recent cert only has the domain name wo-lar.com in it. But, the VirtualHost for port 80 only has www.wo-lar.com. You should add this

ServerAlias wo-lar.com
3 Likes

This is usually an indication of something gone wrong:

Please show:
certbot certificates

3 Likes

Brilliant!
Adding "ServerAlias wo-lar.com" fixed the issue!

Thanks, Wolfgang

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.