I had a problem with this a little while ago and thought it was fixed
but it appears not. I'm using nginx in front of apache2/wsgi and I'm
having problems with infinite loops when trying to redirect insecure
pages. I found a post with someone else having the same problem, which
was was supposedly fixed by adding this to the nginx site on port 80:
location ~ ^/shop/checkout {
rewrite ^/(.*) https://mydomain.com/$1 permanent;
}
This works when I get to the first /shop/checkout/ url but when I
proceed to /shop/checkout/dummy/ it starts the endless loop. I don't
see why I would need to add an if statement to this as it should only
be evaluated if the url is insecure i.e., HTTP, but I did anyway,
which still doesn't work:
location ~ ^/shop/checkout/ {
if ($scheme = HTTP) {
rewrite ^/(.*) https://dzopastudio.com/$1 permanent;
}
}
I thought maybe that the satchmo ssl redirect middleware is causing
problems when used with this nginx redirect but when I take it out I
get the following error:
Exception Type: TypeError at /shop/checkout/dummy/
Exception Value: pay_ship_info() got an unexpected keyword argument
'SSL'
Thanks for any help,
Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---