Report this

What is the reason for this report?

SSL: Domain redirects to IP address for certificate; VirtualHost redirection follows too late

Posted on April 13, 2020

Hello,

I have VirtualHost redirections from www.example.com and example.com to https://example.com. Unfortunately, the redirection comes too late.

When people visit www.example.com and example.com, they are immediately redirected to my ip droplet 127.0.0.1 and see the SSL certificate warning. Because Lets Encrypt certifies domains, it says the certificate is only valid from example.com.

When you click “Continue at my own risk.” The VirtualHost redirection works and transfers to my https://example.com.

How can I make the VirtualHost redirection begin before the domains redirect to the IP address?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.