I coded up my own Mongrel handler to do this for my Rails apps, but it would be much better if nginx had it.<br><br><br><div><span class="gmail_quote">On 6/15/07, <b class="gmail_sendername">Bedros Hanounik</b> &lt;<a href="mailto:2bedros@gmail.com">
2bedros@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I requested this feature before, and the guy at nginx wiki was kind enough to put it on the feature request list.
<br>
<br>
<a href="http://wiki.codemongers.com/NginxFeatureRequests" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://wiki.codemongers.com/NginxFeatureRequests</a><br>
<br>
however, I still think it&#39;s worth it to add a feature like secdownload
to nginx; because X-Accel-Redirect does not allow me to create temp
link to a static file, which expires after a certain time. <br>
<br>
X-Accel-redirect gives me some control to check user authenticity
before serving the static file (redirecting); my problem with that is I
want to decouple the web server (checking authenticity) from serving
static files. with lighttpd secdownload feature, the static file server
and web server are on different machines; I check&nbsp; the authenticity of
the requester once, create the temp link which expires later, then I
don&#39;t have to worry about checking the requester authenticity everytime
the file is requested.<br clear="all"><br>
I&#39;m planning on building a website (using django) with a sophisticated&nbsp; access
control, and I&#39;m leaning toward lighttpd just because of the
flexibility secdownload feature gives me. However, I really like the
configuration of nginx; it&#39;s easy to read and powerful, even though I&#39;m
expert in either lighttpd nor in nginx.<br>
<br clear="all">Regards,<br><br>-Bedros<br><br><table style="font-size: 11px; color: rgb(85, 85, 85); border-collapse: collapse;"><tbody><tr><td><br></td></tr></tbody><tbody></tbody></table>
<br><br><div><span class="gmail_quote">On 6/15/07, <b class="gmail_sendername">Igor Sysoev</b> &lt;<a href="mailto:is@rambler-co.ru" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">is@rambler-co.ru
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Jun 15, 2007 at 08:09:48PM +0300, Nati Abargel wrote:<br><br>&gt; nginx have mod secdownload (like lighttpd)?<br>&gt; if yes i happy to learn more about it.<br><br>No, nginx supports X-Accel-Redirect header from backend:
<br><br><a href="http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/
</a><br><a href="http://wiki.codemongers.com/NginxXSendfile" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://wiki.codemongers.com/NginxXSendfile
</a><br><br><br>--<br>Igor Sysoev<br><a href="http://sysoev.ru/en/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://sysoev.ru/en/</a><br><br></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br><br>Kevin Williams<br><a href="http://www.almostserio.us/">http://www.almostserio.us/</a><br><br>&quot;If you don&#39;t think carefully, you might think that programming is just typing statements in a programming language.&quot; - Ward Cunningham
<br>&quot;Any sufficiently advanced technology is indistinguishable from Magic.&quot; - Arthur C. Clarke