https:// getting redirected to http://xxx:443
Hi all- At my wit's end, we have an app that does all their own redirects via IIS rewriter module. We insert the 'protocol' of the request via an iRule that inserts a custom http header 'protocol' with a value of [TCP::local_port clientside] from the 'CLIENT_ACCEPTED' event. If the protocol is '80' they redirect to https. That works fine. In a network trace, I seen the request then come in as https://foo.bar.com. with protocol '443'. Still all good.
Here's where it get's funky, the server then 301 redirects to 'http://foo.bar.com:443' which causes a 503. They swear up and down the server/rewriter is working fine and I do the same for the LTM. Does anyone have any ideas, or have seen this behavior before? Is there any way the LTM would be interpreting https:// as http://:443? This same iRule works fine lots of other places for the same app so I don't think it's the iRule/syntax, etc. Network traces seem to show the server causing the issue, just want to make sure I'm covering my bases. This is a very difficult thing to google. Thanks!