Our network ops folks have set up SSL termination, then reverse-proxy the request to us. Their requirement is that, if they saw the input on port 443, we must serve the content on port 443, so we are serving unencrypted content on port 443. That is an invariant that we have to work around.
For the most part, this isn't a problem. We
Listen 443 and don't set up SSL, and things work, except...redirects.
As an example, if we define:
Alias /foo /path/to/foo <Directory /path/to/foo> ... </Directory>
Apache is smart enough to redirect a request to
/foo/. When we are using http on port 80, it works great. However, when the client is using https on port 443, we end up with a redirect with a
Location that looks like this:
The problem is we don't want to redirect from a secure to an insecure protocol, not that it matters, since we don't serve insecure content on port 443.
I'm guessing that there's a better way to tell Apache that this request was originally a secure request, but I don't know Apache config very well. I'm hoping I don't have to manually create a redirect for each
Directory entry, especially since some content is available in both secure and insecure forms.
Anybody have any pointers to docs that can help (unfortunately, I can't come up with the right google incantation to help)? Pointers of the best way to handle this also appreciated. :)