http, https issue

Ricardo Acras lists at
Fri Jan 18 00:14:38 MSK 2008


  I am setting up my rails app to work with ginx and cluster mongrel.
Everything seems to be fine. But sometimes I get an error.
  Investigating, the error ocurred always when something redirects to a
https:// like URL.
  Investigating deeply I found out that this redirection occurs when the
acts_as_authenticated plugin in my app is "used".
  The thing is that this redirection is different when I access the app
directly via mongrel, see bellow.
  My question is: what should make nginx redirect to a https instead of
http? So I can investigate better.


=== directly to mongrel
Processing TasksController#index (for at 2008-01-17
19:03:46) [GET]
  Session ID: b1c5b09b7b0df57fc12710906ec6d149
  Parameters: {"action"=>"index", "controller"=>"tasks"}
Redirected to http://bbking:4662/account/login

=== through nginx
Processing TasksController#index (for at 2008-01-17 18:49:40)
  Session ID: 66f58053fd6b885764e8f29f6d6f5fba
  Parameters: {"action"=>"index", "controller"=>"tasks"}
Redirected to https://bbking:8081/account/login
Posted via

More information about the nginx mailing list