I''m trying to deploy my application. I basically followed the cookbook in the rails book. But I have a problem. My incoming requests are https://foo.com/whatever I do a RewriteRule to pass it to a Proxy with two mongrel BalanceMembers as http://127.0.0.1:8000 and 8001. All that is working fine except when my rails code executes a redirect_to there(id) function. That puts me back to an http request. I have my Apache server set up so that you can not get to these pages using http so the server gives me back a page not found or permission denied or something like that. I think I understand why this is happening. As far as mongrel and rails thinks, this is an http request. Can I get mongrel to pass the request to rails as if it was https? Thank you for your help, Perry -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, 2007-02-07 at 04:05 +0200, Perry Smith wrote:> I''m trying to deploy my application. I basically followed the cookbook > in the rails book. But I have a problem. > > My incoming requests are https://foo.com/whatever I do a RewriteRule to > pass it to a Proxy with two mongrel BalanceMembers as > http://127.0.0.1:8000 and 8001. All that is working fine except when my > rails code executes a redirect_to there(id) function. That puts me back > to an http request. I have my Apache server set up so that you can not > get to these pages using http so the server gives me back a page not > found or permission denied or something like that. > > I think I understand why this is happening. As far as mongrel and rails > thinks, this is an http request. > > Can I get mongrel to pass the request to rails as if it was https?Try adding these two lines to your apache configuration: RequestHeader set X_FORWARDED_PROTO "https" RequestHeader set X_ORIGINAL_PROTOCOL "https" If you''re using VirtualHost blocks, these lines go in that block.> Thank you for your help, > Perry-- Rick rick.tessner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks. I was just about to come back and post an update. I found this link: http://blog.innerewut.de/articles/2006/06/21/mongrel-and-rails-behind-apache-2-2-and-ssl Thank you again. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---