Ok, thanks for suggestion.
Unfortunately I don't know how to use a proxy - reverse proxy server at all, so I'll need to also learn that.

Octavian

----- Original Message ----- From: "Perrin Harkins" <[EMAIL PROTECTED]>
To: "The elegant MVC web framework" <[email protected]>
Sent: Wednesday, January 10, 2007 10:33 PM
Subject: Re: [Catalyst] serving static files


On Wed, 2007-01-10 at 22:20 +0200, Octavian Rasnita wrote:
I guess that authorizing the users, then read() -ing the selected file and
serving to the browser is not very efficient, especially under mod_perl.
Is there a better way?

Yes.  Writing an auth handler and then letting the normal handler deal
with serving the file is more efficient than that.  The most efficient
is using mod_auth_tkt on your proxy server and setting the ticket cookie
from your perl code when people log in.  Then the static files don't
need to touch mod_perl at all.

http://www.openfusion.com.au/labs/mod_auth_tkt/

- Perrin


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to