Hi all,

I have a request from my users:

We want iphones (hdr_sub(user-agent) -i iphone) to be redirected to Apple
store the first time thez come on our site. but only 1 time per days.

So I want to user the "redirect" directive

acl iphone                 hdr_sub(User-Agent) -i iphone
acl seen                   hdr_sub(cookie) SEEN=1
redirect location http://itunes.apple.com/us/app/myapp/ set-cookie SEEN=1
if iphone !seen

But how to set the cookie : expires=/TOMOROW/ ?

I use haproxy 1.3 packaged by debian lenny.

Thanks a lot.

Best regards,

-- 
Damien

Reply via email to