Best way to serve/upload documents

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

Maybe you should use HTTP realms based authentication.

This will solve both of your issues, I believe.

Google is your friend.

Julian.

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

Thanks! That’s exactly what I was looking for. I had seen that before,
but I had no idea how to find it again.