Question Locked

SSL redirection

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Scenario:-
A.COM, B.COM, C.COM... A & B are registered with SSL. All sites are on single Linux server and host entries made in /etc directory.

Problem:-
C.COM works fine with http BUT, it redirects to A.COM when I type https://C.COM.

Can someone help me why is this happening ?

11 replies

by robo_dev

The DNS resolution order in host (dot) conf needs to have hosts first

Perhaps FQDN is mismatched between server and client?

Does nslookup return expected result?

by rob kuhn

Is there a redirect in the root of C.COM ?

Is this happening internally and externally? In other words on the LAN side instead of on the otherside of the firewall? What I'm getting at is is there perhaps a proxy server in place?

What webserver are you running on the Linux box? If it's Apache/Tomcat, recheck the config file too.

by kiran.maan

All three sites are on single Linux box with Apache/Tomcat and happening on web.

by rob kuhn

Recheck and verify the config file including the bindings.

by chplatt

DNS resolution should be fine if HTTP is working and not redirecting. I would check to see how IP and Ports are bound to the server. Sounds like the host A.COM is bound to all HTTPS protocols, port 443.

Are you using multiple IPs or host name resolution to identify the destination site?

by kiran.maan

This seems close to issue. Server host file is OK and entries are made proper.
I am planning to do,
1. Check domain registration details with GoDaddy
2. check entries (C.COM in A.COM certificate registration) made while installing certificate

I will update this post and activities with results...

thanx

by vgtsec

If you figure it out post the solution here, I have had a similar issue, but I forgot what I did to fix it. I think @chplatt has it right though.

by jaysoni86

Since its Linux server, I'm guessing you are running Apache and its because of Apache.

Lets say there are 3 domains: a.com, b.com & c.com and ONLY b.com has SSL. So https://a.com, https://c.com and https:// (if its shared IP for all), will resolve to https://b.com [it will always show website with HTTPS]

However, if you resolve http://, it will show the alphabetically first website on that IP i.e. http://a.com in this case.

This discussion is closed to new replies.