~ubuntu-branches/ubuntu/oneiric/lighttpd/oneiric

« back to all changes in this revision

Viewing changes to doc/config/conf.d/trigger_b4_dl.conf

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-10-15 21:01:50 UTC
  • mfrom: (6.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20101015210150-edjmolu35qt56evm
Tags: 1.4.28-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: 
    + libgamin-dev rather than libfam-dev to fix startup warning.
    + debhelper Build-depends bumped to (>= 7.0.50) for
      overrides in rules file. 
  - debian/index.html: s/Debian/Ubuntu/g branding on the default page.
  - Added a UFW profile set:
    + debian/lighttpd.dirs: added etc/ufw/applications.d
    + debian/rules: install the ufw profile.
    + debian/control: Suggests on ufw.
  - Add lighttpd-dev package:
    + debian/control: Added lighttpd-dev package; Build-depends on
      automake, libtool
    + debian/lighttpd-dev.install: Added.
  - debian/rules:
    + Add override_dh_installinit to set "defaults 91 09" to not start
      before apache2 but in the same runlevel with the same priority.
  - debian/patches/build-dev-package.patch: Updated
  - debian/lighttpd.conf: Comment 'use-ipv6.pl' by default, which causes
    failure to bind port in ipv4 (LP: #551211)
* debian/patches/build-dev-package.patch: updated
* Dropped changes:
  - debian/lighttpd.init: clean environment; Check syntax during start/reload:
    this change has been applied in the debian package
  - syntax_check function defined in init script. (LP: #600767): this change
    has been applied in the debian package
  - debian/patches/build-dev-package.patch: Updated: patch updated newly 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#######################################################################
 
2
##
 
3
##  Trigger before download 
 
4
## --------------- 
 
5
##
 
6
## - if user requests ''download-url'' directly, the request is denied
 
7
##   and he is redirected to ''deny-url'
 
8
## - if user visits ''trigger-url'' before requesting ''download-url'',
 
9
##   access is granted
 
10
## - if user visits ''download-url'' again after ''trigger-timeout'' has
 
11
##   elapsed, the request is denied and he is redirected to ''deny-url''
 
12
##
 
13
## http://www.lighttpd.net/documentation/trigger_b4_dl.html
 
14
##
 
15
server.modules += ( "mod_mod_trigger_b4_dl" )
 
16
 
 
17
##
 
18
## To store the trigger state you can either use a local GDBM
 
19
## file or memcached(s). 
 
20
##
 
21
 
 
22
##
 
23
## Path to the local GDBM file.
 
24
##
 
25
trigger-before-download.gdbm-filename = home_dir + "/trigger.db"
 
26
 
 
27
##
 
28
## List of memcached servers.
 
29
##
 
30
#trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
 
31
 
 
32
##
 
33
## URL prefix a visitor has to visit before downloading is allowed 
 
34
##
 
35
trigger-before-download.trigger-url = "^/trigger/"
 
36
 
 
37
##
 
38
## URL Prefix of the proteced area.
 
39
##
 
40
trigger-before-download.download-url = "^/download/"
 
41
 
 
42
##
 
43
## 
 
44
## The deny url.
 
45
##
 
46
trigger-before-download.deny-url = "http://www.example.com/index.html"
 
47
 
 
48
##
 
49
## How long the "ticket" of the user will be valid.
 
50
##
 
51
## Value in seconds.
 
52
##
 
53
trigger-before-download.trigger-timeout = 10
 
54
 
 
55
##
 
56
## Normally the memcached key will be the remote ip of the request
 
57
## If you store other data in the memcached aswell and want to avoid
 
58
## key collisions you can configure a memcache-namespace.
 
59
##
 
60
## The key for the request will be memcache-namespace + remote_ip than.
 
61
##
 
62
#trigger-before-download.memcache-namespace = "t4bdl_"
 
63
 
 
64
##
 
65
## If set to 1, the module will log some debug informations.
 
66
##
 
67
#trigger-before-download.debug = 0
 
68
 
 
69
##
 
70
#######################################################################