Also the 302 is being reported in the browser as a 200.
I have compiled nginx with debug and I am getting:
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy status 302 "302 Moved Temporarily"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header: "Server: Apache-Coyote/1.1"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header: "Location: https://localhostthatworks/foo?bar=2818fe22-51f9-4c68-87e7-7e8dca210293"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header: "Content-Length: 0"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header: "Date: Thu, 21 Jun 2012 19:16:48 GMT"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header: "Connection: close"
2012/06/21 19:16:48 [debug] 6674#0: *3 http proxy header done
2012/06/21 19:16:48 [debug] 6674#0: *3 HTTP/1.1 302 Moved Temporarily^M
Server: nginx/1.2.1^M
Date: Thu, 21 Jun 2012 19:16:48 GMT^M
Content-Length: 0^M
Connection: keep-alive^M
Keep-Alive: timeout=20^M
Location: https://myurlsthatworks.com/foo?bar=2818fe22-51f9-4c68-87e7-7e8dca210293^M