SSL for same domain name on 2 different IPs

Hi,

I’m trying to migrate a WordPress website from 1 server to another.

The origin website has SSL and the destination website is a temporary website with the same domain name.
I want to overwrite it by the origin website so I can redesign it on the new server and when it’s ready I can just redirect the traffic from the old server to the new one.

The problem is that even though I have a host redirect, if I try to login on the destination website, I’m being redirected to the origin website.

That’s probably because the destination website doesn’t have SSL. Is it possible to tell Cloudflare to give SSL to both the origin and destination website even though they have the same domain name without redirecting the traffic to the destination website?

And if yes, how do you do it?

Thanks for your help.

Hafid.

Welcome to the Cloudflare Community. :logodrop:

How did you install the certificate in your existing origin server?

1 Like

Thank you :slight_smile:

This is a let’s Encrypt certificate that was automatically created by the host.
But I also use the full strict SSL from Cloudflare on top of it.

2 Likes

If you have filesystem access to the Let’s Encrypt certificate and private key, you can use a copy of it on your new server. You will need to use a hosts file entry containing the new server IP while you are developing access testing.

2 Likes

Thanks a lot, it worked indeed :slight_smile:

2 Likes

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