@Drew wrote:
Good Afternoon,
I am attempting to do a 301 redirect from my old domain to my new domain, but to have a cookie in the redirect so I can have a popup greeting on my new domain for those who have been redirected. I have tried the following:
frontend https-external
log /dev/log local0 debug
option httplog
mode http
http-request set-header X-This-redirect This-redirect
maxconn 2048
bind vip-web:443 ssl crt /etc/haproxy/certsAnd in the redirect itself I have:
acl redirect-friends path_beg /friends
redirect location https://newsite.co.uk/ code 301 set-cookie REDIRECTED if redirect-friends
acl redirect-faq path_beg /faq
redirect location https://newsite.co.uk/frequently-asked-questions code 301 set-cookie REDIRECTED if redirect-faqThe redirects work, and I get to where I want to go, I just don’t see any of the cookies or headers I have set.
What am I doing wrong?
I am running HA-Proxy version 1.6.3 2015/12/25 on Ubuntu 16.04.
Thanks in advance.
Drew
Posts: 4
Participants: 2