summaryrefslogtreecommitdiff
blob: 3962fc66a708d111cd17ec55fe44ddf61f3e1347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<IfDefine AUTH_TOKEN>
  
  LoadModule auth_token_module modules/mod_auth_token.so

  # The token is an hex-encoded MD5 hash of the secret password, relative file
  # path and the timestamp. It is encoded onto the URI as:
  # <uri-prefix><token>/<timestamp-in-hex><rel-path 
  # where the token is generated as 
  # md5("secret" + "/path/to/file.txt" + dechex(time_now()))
  # To add the IP of client into the in the md5 hash, enable AuthTokenLimitByIp.

  #<Location /protected/>
    #AuthTokenSecret       "secret"
    #AuthTokenPrefix       /protected/
    #AuthTokenTimeout      60
    #AuthTokenLimitByIp    off
  #</Location>

  # Example:
  # /protected/dee0ed6174a894113d5e8f6c98f0e92b/43eaf9c5/path/to/file.txt
  # maps to
  # /protected/path/to/file.txt

</IfDefine>

# vim: ts=4 filetype=apache