tor 2006-04-13 klockan 17:46 +0000 skrev azeem ahmad:

> i want to configure my server in such a way that if any user is uploading a 
> file heavier than 2Mb than upload must go vi peer2 route instead of normal 
> peer1 route
> is there any way to do this

cache_peer_access with the req_header acl should be able to do it.

acl large_upload req_header Content-length [1-9][0-9]{7} [2-9][0-9]{6}

or if one wants to go fancy on regex syntax

acl large_upload req_header Content-length ([2-9]|[1-9][0-9])[0-9]{6}


2.5.STABLE8 or later required.

Regards
Henrik

Attachment: signature.asc
Description: Detta är en digitalt signerad meddelandedel

Reply via email to