Failed redirect for

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. |, 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:

I ran this command: certbot -v install --cert-name

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 to /etc/httpd/conf.d/vhost-le-ssl.conf
Failed redirect for
Unable to set the redirect enhancement for
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
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_NAME} [OR]
RewriteCond %{SERVER_NAME}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Thank you for your help.


1 Like

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


This is usually an indication of something gone wrong:

Please show:
certbot certificates


Adding "ServerAlias" fixed the issue!

Thanks, Wolfgang


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