Question

Problem: SSL certificate with Let’s Encrypt

I was following the tutorial How To Secure Apache with Let’s Encrypt on Ubuntu 20.04. I was issued a SSL certificate but my website was still not secure. I ran the process again but it still has not worked.

When I go to ssllabs. The SSL report for www.millerfuresh.com - overall rating is A.

I have this error


Failed redirect for millerfuresh.com Unable to set enhancement redirect for millerfuresh.com Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection


Do I need to set up another vhost? for millerfuresh.com? What steps do I need to take to secure my site?

Thank you


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi, First thing first :)

@millerfuresh wrote
When I go to ssllabs. The SSL report for www.millerfuresh.com - overall rating is A.

That is right. If you enter https://www.millerfuresh.com in your internet browser’s address bar, you will get your website through secured connection. However, it does not work for https://millerfuresh.com. The possible reason is included in error message you got from certbot:

@millerfuresh wrote
Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict;

The other issue is related to redirection from HTTP to HTTPS. Having SSL certificate installed, we want to have the connection to our server secured for all the time, even if someone send a request to our web server to port 80 using HTTP, e.g. http://www.millerfuresh.com or just millerfuresh.com. In that case user’s request should be redirected from HTTP to HTTPS (from port TCP 80 to TCP 443), and result in https://www.millerfuresh.com. Such settings are usually done in separate virtual hosts in Apache configuration. Unfortunately, there was some problem reported during configuration of redirection in your case:

@millerfuresh wrote
Failed redirect for millerfuresh.com Unable to set enhancement redirect for millerfuresh.com Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection

What I could suggest is to look for HTTP configuration for your domains and configure redirection to HTTPS manually. It looks like you may have to create HTTPS virtual host for millerfuresh.com by hand, since it seems to be not created so far.