Project

General

Profile

Feature #1192

Limit bandwidth by file

Added by masao over 12 years ago. Updated about 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

#1

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

#2

Updated by masao over 12 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

#3

Updated by darix over 12 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
    }
#4

Updated by Anonymous about 12 years ago

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

Also available in: Atom