Question

Locked

SSL redirection

By kiran.maan ·
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 ?

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Couple of thougts

by robo_dev In reply to SSL redirection

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?

Collapse -

Additional thoughts to add...

by Rob Kuhn In reply to SSL redirection

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.

Collapse -

Reponse To Answer

by kiran.maan In reply to Additional thoughts to ad ...

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

Collapse -

Reponse To Answer

by Rob Kuhn In reply to Additional thoughts to ad ...

Recheck and verify the config file including the bindings.

Collapse -

Reponse To Answer

by ahadenfeldt In reply to Additional thoughts to ad ...

Assuming you're running all these sites on a single IP address, then +1 on checking your Apache config. It sounds like you're being redirected to the default host. The rules Apache follows can be confusing. Here is a link that may be of some help: http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI.

Collapse -

IP and Protocol Binding

by chplatt In reply to SSL redirection

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?

Collapse -

Reponse To Answer

by kiran.maan In reply to IP and Protocol Binding

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

Collapse -

Curious

by EzeXpl01t In reply to SSL redirection

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.

Collapse -

Apache

by jaysoni86 In reply to SSL redirection

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://<IP address> (if its shared IP for all), will resolve to https://b.com [it will always show website with HTTPS]

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

Collapse -

Reponse To Answer

by kiran.maan In reply to Apache

I doubt for it.

Back to Networks Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Hardware Forums