Closed (works as designed)
Project:
Secure Pages
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2012 at 00:57 UTC
Updated:
17 Oct 2012 at 19:22 UTC
I have used this module on another site without any problems but on the current site I'm working on it switches to https but not back again. I was also getting a double slash which I've temporarily fixed by using.
$path = !empty($_REQUEST['q']) ? trim($_REQUEST['q'],'/') : '';
Any suggestion?
Comments
Comment #1
marcus178 commentedOne thing I thought of is that the server is a Zeus server rather than apache. Could this be causing the problem?
Comment #2
alanthing commentedI'm having the same problem with a Zeus load balancer. A URL that is not listed in the paths to redirect to https will not load as http.
I've added this to my Apache config (per http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy) and added rules in the Zeus config to set X-Forwarded-Proto for the appropriate protocol:
SetEnvIf X-Forwarded-Proto "https" HTTPS=onI've also tried adding the logic in settings.php with no changes. Though, I understand from the issue queue that this may no longer be necessary.
I edited the module to return another header to troubleshoot:
And for whatever reason, Location is wrong but X-Location is right (removed irrelevant data):
I've tried many different troubleshooting techniques and cannot get Location to come back to my system in http.
Comment #3
alanthing commentedI found the result here: http://community.riverbed.com/t5/Answers/Redirect-to-HTTP-from-HTTPS/td-...
I have Riverbed Sting Ray load balancers, and the interface here is set with:
Virtual Servers > [select your virtual server] > Connection Management > Location Header Settings > location!rewrite > Nothing
Now, my Location header is not being modified when sent back to curl (or my browser)
Comment #4
alanthing commented