tell me your feature request about nginx

nginx.mailinglist nginx.mailinglist at xinio.info
Fri Jun 13 12:39:21 MSD 2008


Hello


firstly i would like to say i love nginx and have recently finished moving
from lighttpd!


here is my request if possible please im currently using php and nginx for a
huge site using ~2gbit average across several dozen servers with serving
large files to thousands of people concurrently


each request goes thru php which does a bit of authentication and
concurrency control, it be nice if some of this could be shifted to nginx


currently X-Accel-Redirect  works like a charm and has resume support which
is very nice
also the X-Accel-Limit-Rate is very useful

i also pass X-Session-ID header using an id generated via php to make it
easier to parse access logs later


now the problem i have is with NginxHttpLimitZoneModule

is there any way make this more flexible like

create an extra X-Accel-Limit-Connections header

that will allow the number of connections to a certain file be set
dynamically from php

for example something like


--------------
<?php
...
header( 'Content-Type: '.$download['file_mime'] );
header( 'Content-Length: '.$download['file_size'] );
header( 'X-Session-ID: '.$download_key );
header( 'X-Accel-Limit-Rate: '.$download['transfer_limit'] );
header( 'X-Accel-Redirect: /_downloads/'.$download_key );

//NEW OPTION! limit connections dynamicaly
header( 'X-Accel-Limit-Connections: 4');

?>
-----

so the above would serve a file of certain mime and size using accel
redirect, limiting to certain speed and # connections, and using a session
id for custom loging


Thanks
On Fri, Jun 13, 2008 at 8:36 AM, Igor Sysoev <is at rambler-co.ru> wrote:

> On Fri, Jun 13, 2008 at 03:19:27PM +0800, Cherife Li wrote:
>
> > On 06/13/08 13:32, mike wrote:
> > >You have it.
> > >
> > >X-Accel-Redirect.
> > >http://wiki.codemongers.com/NginxXSendfile
> > OK. I've got this issue, too.
> > The situation is, I dynamical generate data, rather than output solid
>
> With X-Accel-Redirect you may redirect request to proxied/FastCGI
> locations.
>
> > files. And, not sure X-Accel-Redirect module supports regex or directory
> > level match, something like lighttpd does.
>
> Could you show example of regex or directory level match ?
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080613/fd1afb63/attachment.html>


More information about the nginx mailing list