I have two projects where the entire site''s contents are only available to logged in users. These users can share documents and files. Is there a best practice for handling a situation like this? Is there a way I can make Apache serve the files, instead of Mongrel, but also make sure the files are only available to certain users? Naturally, any links to relevant articles would be much appreciated. Thanks, Mike -- 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 -~----------~----~----~----~------~----~------~--~---
Maybe you should use HTTP realms based authentication. This will solve both of your issues, I believe. Google is your friend. Julian. On 31/03/2008, at 5:08 PM, Mike Nicholaides wrote:> > I have two projects where the entire site''s contents are only > available > to logged in users. These users can share documents and files. > > Is there a best practice for handling a situation like this? > > Is there a way I can make Apache serve the files, instead of Mongrel, > but also make sure the files are only available to certain users? > > Naturally, any links to relevant articles would be much appreciated. > > Thanks, > Mike > -- > 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 31 Mar 2008, at 08:08, Mike Nicholaides wrote:> I have two projects where the entire site''s contents are only > available > to logged in users. These users can share documents and files. > > Is there a best practice for handling a situation like this? > > Is there a way I can make Apache serve the files, instead of Mongrel, > but also make sure the files are only available to certain users?You need to add the xsendfile module to Apache and then use some header magic to send out the file.> > Naturally, any links to relevant articles would be much appreciated.http://john.guen.in/past/2007/4/17/send_files_faster_with_xsendfile/ Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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! That''s exactly what I was looking for. I had seen that before, but I had no idea how to find it 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 -~----------~----~----~----~------~----~------~--~---