On Mon 25.02.2008 19:45, Willy Tarreau wrote:
>On Mon, Feb 25, 2008 at 04:17:46PM +0700, Benjamin Scherrey wrote:
>>
>> haproxy looks incredibly well done and I look forward to trying it
>> out. Does haproxy have any capability like Perbal's internal
>> redirection akin to httpd's X-Sendfile or nginx's X-Accel-Redirect?
>> Seems like a perfect feature for a http proxy.
>
>No, there is no such feature. It would require to conserve the whole
>request before re-posting it to another server, which is contrary to
>the way it currently works. Maybe one day it will be possible for
>GET/HEAD requests, but that's not sure because the few requests I got
>till there were not reasonable at all and were more tied to bad initial
>design than a real need.
It is only a header in the response:
http://wiki.codemongers.com/NginxXSendfile
Howabout to make the following:
### pseudo config
acl internal_download path_end iso
use_backend direct_downwload if internal_download
backend direct_downwload
responseheader X-Accel-Redirect:\/protected/iso.img
responseheader X-Accel-Redirect:\/protected/iso.img
requestdeny ....
###
cheers
Aleks Received on 2008/02/26 09:27
This archive was generated by hypermail 2.2.0 : 2008/02/26 09:30 CET