Feature #1192
Limit bandwidth by file
| Status: | Fixed | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | 1.5.0 | |||
| Pending: | Resolution: | fixed |
||
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
History
05/22/2007 06:09 AM - darix
- Status changed from New to Fixed
- Resolution set to fixed
you can match the files with conditionals and set the bandwidth inside the conditional.
05/22/2007 06:24 AM - masao
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
05/22/2007 06:34 AM - darix
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
}