Actions
Feature #1192
closedLimit bandwidth by file
ASK QUESTIONS IN Forums:
Description
I'd like to set Lighttpd to do this:
For any given file in a specific directory, limit the bandwidth usage of any file to N.
Masao
Updated by darix over 17 years ago
- Status changed from New to Fixed
- Resolution set to fixed
you can match the files with conditionals and set the bandwidth inside the conditional.
Updated by masao over 17 years ago
does it work on a per-file basis? or is the limit on the group of files matched by the conditional?
can you point me to an example and/or docs?
Thanks,
Masao
Updated by darix over 17 years ago
http://trac.lighttpd.net/trac/wiki/Docs%3AConfiguration#conditional-configuration
you need something like$HTTPurl =~ ".*\.(jpg|png|gif)$" {
- config here
}
or if all images are below /images/ you could use
$HTTPurl =~ "^/images/" {- config here
}
Updated by Anonymous over 17 years ago
You mentioned implementing conditionals but nothing about setting the bandwidth limit.
Actions
Also available in: Atom