29 Jun '12, 10am

@hising Smidig lösning, mitt nästa nginx-projekt kommer att vara typ detta,

Sometimes you may need to implement controlled downloads when all downloads requests being sent to your script and then this script decides what to do: to send some file to the user or to show some access denied page or, maybe, do something else. In lighttpd server it can be done by returning X-Sendfile header from script. Nginx have its own implementation of such idea using X-Accel-Redirect header. In this short post I will try to describe how to use this feature from PHP and Rails applications.

Full article: http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-...

Tweets