[dancer-users] Serving big static and private files
Paulo A Ferreira
paulo.a.ferreira at gmail.com
Mon Mar 10 11:12:53 GMT 2014
This is awesome stuff and now we will have at least 1/24 of 2014 Perl
Dancer Advent Calendar by Gabor ;-)
On Mon, Mar 10, 2014 at 5:57 AM, Russell Jenkins <
russell.jenkins at strategicdata.com.au> wrote:
> On 10/03/2014 3:56 pm, Gabor Szabo wrote:
>> I am not sure how to do this when the files are served directly by nginx.
>> Is there a solution? Any recommendations?
> Hey Garbor,
> Have a look at nginx's support for the X-Accel-Redirect header.
> Your Dancer app returns a response with this header set which nginx then
> (internally) redirects to the local file rather than than stuffing the file
> content into Dancer's response.
> A quick Google search shows up a Catalyst advent calendar entry that
> should give an overview of how this works; http://www.catalystframework.
> Hope that helps,
> dancer-users mailing list
> dancer-users at dancer.pm
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dancer-users