Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A coworker and I are trying to hash out a problem we're having with redirection over HTTPS, and I figure more eyes can't hurt. Our problem is as follows:

  • Client( and Host1( successfully negotiate a SSLv3.0 session.
  • Client( attempts to send HTTP data to Host1( and is redirected(307) to Host2(
  • HTTP data is never received by Host2(

Our knowledge of SSL is pretty decent, but the guy who was really well versed in it is no longer here, so bear with me. Here are our questions:

  1. Since we're redirecting over SSL, does the Host2( certificate common name need to match the common name on the Client's( cert?
  2. What are other issues that could be causing this problem?
share|improve this question
So, what DOES happen when the client attempts to connect to the second host? – Michael Hampton Mar 12 '13 at 19:18
@MichaelHampton The client and host2 perform a SSL negotiation with an encrypted SSL alert, but the negotiation completes successfully. After that the connection is closed and the data is not sent. – Joshua Mar 12 '13 at 19:21
You should look at your web server error logs at host2 - it is normally quite explicit. What are they saying about that specific connection. – CloudWeavers Mar 12 '13 at 19:35
There's no special interaction between HTTP redirects and TLS; the effect should be the same as the client directly going to host2. What happens if you do this? – mgorven Mar 12 '13 at 20:20

You will re-initiate a communication toward the redirected hosts.

If you do :

1) User A request

2) 307 toward

3) User A request

in 1, you need successful SSL exchange with CN, in 3, you need successful SSL exchange with CN (if you are forwarding toward https, if forwarding to HTTP, you don't need it)

Also, be careful that 3 isn't redirecting toward 1, that create 'big & bad loops'.

Quick reminder: You negotiate SSL before you actually pass your virtual host data (except if you use SNI, which is quite rare). So you might have an issue if A and B are located on the same server, same IP, both on SSL.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.