Thanks Nanad,
That works perfectly, thank you
On 11 March 2016 at 22:37, Nenad Merdanovic wrote:
> Hello Neil,
>
> You seem to have missed my answer, so I am gonna top post this time :)
>
> http-request redirect location
> %[hdr(host),map(/etc/haproxy/redirect_host.map)] code
Hello Neil,
You seem to have missed my answer, so I am gonna top post this time :)
http-request redirect location
%[hdr(host),map(/etc/haproxy/redirect_host.map)] code 301 if {
hdr(host),map(/etc/haproxy/redirect_host.map) -m found }
Regards,
Nenad
On 03/11/2016 11:32 PM, Neil - HAProxy List
Hello
I've left a little time and no one has said anything more so time for me to
act and submit a patch.
I want to make functions that can be used in acls and take a map and
provide has_key and, for completeness, has_value
Are those names uncontroversial/ suitable and, i really hope, is this
I'm amazed by the number of typos in one message. ;)
On 3 Mar 2016 18:08, "Neil - HAProxy List"
wrote:
> Thanks Conrad,
>
> That sort of thing looks better that what I had, and I'll give it a go.
>
> I still think this is a bit long winded syntax for something
Hello
I've left a little time and no one has said anything more so time for me to
act and submit a patch.
I want to make functions that can be used in acls and take a map and
provide has_key and, for completeness, has_value
Are those names uncontroversia/ suitablel and, i really hope, is this
Thanks Conrad,
That sort of thing looks better that what I had, and I'll give it a go.
I still think this is a bit long winded syntax for something that probably
quite a common things to want to do? A map_contains type boolean function
still seems like a good to have?
Thanks
Neil
On 3 March
If you are using haproxy >=1.6, you might be able to do something like this:
acl no_redir %[req.redir] -m str NO_REDIR
http-request set-var(req.redir) \
%[hdr(host),map(/etc/haproxy/redirect_host.map,NO_REDIR)]
http-request redirect location %[req.redir] code 301 if !no_redir
This is
Hello
On 3/3/2016 1:40 PM, Neil - HAProxy List wrote:
> Hello
> This works but is yuck (I'd have to automate generating the acl file
> from the map - not hard but not clean). Ideally I'd like a way to only
> redirect when a value is in the map what would be fine is if there were
> a
Hello
HA-Proxy version 1.5.15 2015/11/01
I've got a service with some redirects for old virtual hosts to new
locations on main website that I want to store in a map file
/etc/haproxy/redirect_host.map with lines like
www.oldname.com http://www.shiny.net/collections/oldname
My issue is I don't
9 matches
Mail list logo