0
I’m facing a problem, we have a main domain that is with the SSL installed and we have a variation of this domain, which I registered to assist when searching for the site on the internet.
We use nginx
, in a droplet
of Digital Ocean.
I made the note by the digital Ocean, and it works ok, by typing the X address it enters my droplet, but it does not change to the Y address (which has the SSL) and the security error, says the X address has an invalid certificate.
I’m sorry if it got a little confusing, what I need to do is, type in the X address and it redirects to the Y address.
Can someone help me?
See if this can help you: https://christiaanconover.com/blog/how-to-redirect-http-to-https-in-nginx, if you can’t forget to post the solution.. ;)
– Gustavo Carvalho
So it didn’t work out, because when I type in the X domain (http://x.com) it goes into https://x.com and says it doesn’t have a valid certificate, instead of going into http://x.com and playing for https://y. with
– Gustavo Amaral
Um.. Do you have any ssl certificates for the x.com domain? Because you have to have one certificate per domain.
– Gustavo Carvalho
No, we don’t, Putz, I’ll take a look
– Gustavo Amaral
If both domains are SSL, each one must have its certificate purchased separately.
– epx