Re: Nginx Cache Config with Multiple Disk Drives

2013-07-20 Thread Maxim Dounin
Hello! On Sat, Jul 20, 2013 at 05:21:27PM +, Johns, Kevin wrote: > > > On 7/20/13 2:58 AM, "Maxim Dounin" wrote: > > >Hello! > > > >On Fri, Jul 19, 2013 at 04:33:56PM +, Johns, Kevin wrote: > > > >> Hi, > >> > >> I am looking for guidance on how best to configure Nginx Proxy > >> Cac

Location recursive downloads php files

2013-07-20 Thread Peleke
I try to secure a specific folder and all files and subfolders with this location block: location ^~ /folder1/admin { auth_basic "Login"; auth_basic_user_file /var/www/domain.tld/www/folder1/admin/.htpasswd; } With this code nginx offers always to download the php files.

Re: Nginx Cache Config with Multiple Disk Drives

2013-07-20 Thread Johns, Kevin
On 7/20/13 2:58 AM, "Maxim Dounin" wrote: >Hello! > >On Fri, Jul 19, 2013 at 04:33:56PM +, Johns, Kevin wrote: > >> Hi, >> >> I am looking for guidance on how best to configure Nginx Proxy >> Cache in a multi-disk drive environment. Our typical server >> setup is such that each drive is it

Re: Limit_rate for different resolutions !!

2013-07-20 Thread Francis Daly
On Sat, Jul 20, 2013 at 02:47:14PM +0500, shahzaib shahzaib wrote: Hi there, > what if both(720p,360p) are in same directory i.e /var/www/html/videos ? Where's the problem? http://nginx.org/r/limit_rate for limit_rate. http://nginx.org/r/location, if you choose to handle the different types of

Re: Limit_rate for different resolutions !!

2013-07-20 Thread shahzaib shahzaib
Hello Francis, what if both(720p,360p) are in same directory i.e /var/www/html/videos ? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Limit_rate for different resolutions !!

2013-07-20 Thread Francis Daly
On Sat, Jul 20, 2013 at 02:29:49PM +0500, shahzaib shahzaib wrote: Hi there, > Is there a way that i could use different limit_rate in nginx for > different files ? I.e > > 1. limit_rate 500k for 720p video files. > 2. limit_rate 180k for 320p video files. Yes. http://nginx.org/r/limit_r

Limit_rate for different resolutions !!

2013-07-20 Thread shahzaib shahzaib
Hello, Is there a way that i could use different limit_rate in nginx for different files ? I.e 1. limit_rate 500k for 720p video files. 2. limit_rate 180k for 320p video files. Best Regards. Shahzaib ___ nginx mailing list nginx@nginx.org http:/

Re: Why Nginx Doesn't Implement FastCGI Multiplexing?

2013-07-20 Thread Igor Sysoev
On Jul 20, 2013, at 11:52 , momyc wrote: >> it is useless to buffer a long polling connection in a file. > > For Nginx there is no any difference between long-polling or other request. > It would't even know. All it should care is how much to buffer and for how > long to keep those buffers until

Re: Nginx Cache Config with Multiple Disk Drives

2013-07-20 Thread Maxim Dounin
Hello! On Fri, Jul 19, 2013 at 04:33:56PM +, Johns, Kevin wrote: > Hi, > > I am looking for guidance on how best to configure Nginx Proxy > Cache in a multi-disk drive environment. Our typical server > setup is such that each drive is its own partition, for example, > if we have a 10 driv

Re: Why Nginx Doesn't Implement FastCGI Multiplexing?

2013-07-20 Thread momyc
> Yes, but it is useless to buffer a long polling connection in a file. Buffering of some data on Web-server is fine as long as client receives whatever server has sent or client gets closed connection. If sending is not possible after buffers are full dropping client connection and aborting reque

Re: Why Nginx Doesn't Implement FastCGI Multiplexing?

2013-07-20 Thread momyc
> it is useless to buffer a long polling connection in a file. For Nginx there is no any difference between long-polling or other request. It would't even know. All it should care is how much to buffer and for how long to keep those buffers until droping them and aborting request. I do not see any