Comportamiento de redirección SSL

Scenario: A.COM, B.COM, C.COM. A & B.COM are registered with SSL. All three sites host entries are in single server in /etc/hosts with respective domain name.

Question: When I type https://C.COM (non-ssl site). It automatically redirects to A.COM (ssl site). There is no entries made in DNS (Godaddy) and server host entry for such behaviour.

Can somebody help me understand why is this happening ?

preguntado el 28 de agosto de 12 a las 14:08

Can you share which domain goes to what IP on your server. IE: does and both share IP1 or are they on separate IP addresses? -

All three sites shares single IP and it is redirected on HTTPS port when accessing C.COM. -

1 Respuestas

It's not clear what you mean by "registered with SSL". You don't "register" with SSL. I presume you mean you've configured a certificate for HTTPS on the server(s) listening at the address(es) for y

Since all 3 domains have entries in /etc/hosts, from that machine's point of view, DNS resolution is irrelevant: the hosts file will be used to give the client the IP address for each domain.

You're not saying whether, y/o share IP addresses.

Cuando escribes in your browser, it gets the IP address for (which presumably is the same as that of and makes an SSL/TLS connection to it (on port 443). It gets the certificate presented by the server (it should show a warning message if you get a certificate that's not valid for The reason you get es probablemente porque is the default host served on that IP address (and you haven't configured

Respondido 28 ago 12, 15:08

One more point to make is that I do not get any warning message when it redirect to C.COM on https from A.COM.. - KJO

Perhaps you're using a certificate that's valid for both hosts. - Marrón

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.