5
I’m having a bit of a weird problem here.
We have two sites on the same server running with Nginx; a holds certificate HTTPS
and the other not. The problem is that if a customer enters the site without the certificate and places the HTTPS
on it, the site is redirected to the other domain that has the HTTPS
. And if I happen to put the server IP, by default it goes to the domain that does not have the HTTPS
. However, if you put the HTTPS
before the IP also, the IP is redirected to the website that has the HTTPS
.
It seems to me that some default setting is making the redirect to the site with HTTPS
and I’m not getting the problem.
see if this stack overflow issue can resolve: http://stackoverflow.com/questions/11773544/nginx-different-domains-on-same-ip
– athosbr99
Post to your configuration.
– Ricardo