Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection


#1

Hi,

I am new to setting up the config files and SSL. I am getting below error when trying to setup SSL by following the instructions from ‘https://stormpath.com/blog/secure-spring-boot-webapp-apache-letsencrypt-ssl’. Please help me and let me know if you need more details.

My domain is: snapittestdomains.com

I ran this command: ./letsencrypt-auto --apache -d snapittestdomains.com

It produced this output:
Failed redirect for snapittestdomains.com
Unable to set enhancement redirect for snapittestdomains.com
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection

  • We were unable to set up enhancement redirect for your server,
    however, we successfully installed your certificate.
  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/snapittestdomains.com/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/snapittestdomains.com/privkey.pem
    Your cert will expire on 2018-10-11. To obtain a new or tweaked
    version of this certificate in the future, simply run
    letsencrypt-auto again with the “certonly” option. To
    non-interactively renew all of your certificates, run
    “letsencrypt-auto renew”

My web server is (include version): apache

The operating system my web server runs on is (include version): ubuntu

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


#2

Hi,

That message means that can’t locate the correct http 80 virtual host for your apache (with the correct domain name) and they can’t create a new one since it’s already exists.

That does not affect the truth that the certificate has been installed in your server. The only thing affected is you’ll need to locate your domain http config and manually change the content to serve a 301 redirection.

Thank you


#3

Thanks for you reply stevenzhu, do I need to change any config files for 301 redirection?

Thanks
Naveen


#4

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