Project

General

Profile

Actions

Feature #1192

closed

Limit bandwidth by file

Added by masao almost 17 years ago. Updated almost 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
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

Actions #1

Updated by darix almost 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.

Actions #2

Updated by masao almost 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

Actions #3

Updated by darix almost 17 years ago

http://trac.lighttpd.net/trac/wiki/Docs%3AConfiguration#conditional-configuration

you need something like
$HTTPurl =~ ".*\.(jpg|png|gif)$" {
  1. config here
    }

or if all images are below /images/ you could use

$HTTPurl =~ "^/images/" {
  1. config here
    }
Actions #4

Updated by Anonymous almost 17 years ago

You mentioned implementing conditionals but nothing about setting the bandwidth limit.

Actions

Also available in: Atom