Re: Nginx limit_rate based on file extension

2016-06-24 Thread Francis Daly
On Fri, Jun 24, 2016 at 03:10:08AM -0400, charles13 wrote: Hi there, > I wonder is there any way to limit_rate based on file extension in Nginx, > for example, putting different rate limit rules on flv and mp4? I've not tested it, but it should Just Work. limit_rate can work in location{}, so p

Nginx limit_rate based on file extension

2016-06-24 Thread charles13
Hello, I wonder is there any way to limit_rate based on file extension in Nginx, for example, putting different rate limit rules on flv and mp4? I've tried this, but somehow returned file not found location ~* \.(flv|f4v)$ { limit_rate_after 1m; limit_rate 80k; } location ~* \.(mp4|m4v)$ { limi