Vince W. wrote: > Is there an easy way to redirect foo.com to www.foo.com in nginx? > Either that or if somebody knows a way to get restful authentication to > store a cookie for either www.foo.com or foo.com that would be great. > My current cookie is stored with this line: > > > cookies[:auth_token] = { :value => > self.current_user.remember_token,:expires => > self.current_user.remember_token_expires_at } > > I tried adding :domain => '.foo.com' but that didn't seem to work. I > figure the nginx redirect would be the easiest thing... > > > Thanks. > I'm using something like the following and it seems to work OK:
server { server_name www.foo.com; rewrite ^/(.*) http://foo.com/$1 permanent; } -- ---------------------------- Autopendium :: Stuff about old cars http://autopendium.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---