Re: Dynamic server name with HAProxy, based on original hostname

2017-09-18 Thread Lukas Tribus
Hello, Am 17.09.2017 um 23:11 schrieb Ludovic Gasc: > >   > > Regarding your specific example, what exactly is not working? Haproxy > will perform dns resolution on startup and my guess would be it throws an > error since %[hdr(host)] at that point is empty. > > > Exactly. > No idea to

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-18 Thread Ludovic Gasc
It isn't really the use case we need. Is it possible to open an issue somewhere with this idea ? I didn't see a bug tracker for haproxy. Regards. -- Ludovic Gasc (GMLudo) Lead Developer Architect at ALLOcloud https://be.linkedin.com/in/ludovicgasc 2017-09-18 2:21 GMT+02:00 Igor Cicimov

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-17 Thread Igor Cicimov
On Mon, Sep 18, 2017 at 7:11 AM, Ludovic Gasc wrote: > 2017-09-17 11:16 GMT+02:00 Igor Cicimov : > >> In 1.8 haproxy takes all records returned by the dns resolver into >> account where is in 1.7 only the first one in the list. That's the >>

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-17 Thread Ludovic Gasc
2017-09-17 11:16 GMT+02:00 Igor Cicimov : > In 1.8 haproxy takes all records returned by the dns resolver into account > where is in 1.7 only the first one in the list. That's the difference I was > referring to in my previous comment. Having this in mind your

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-17 Thread Igor Cicimov
In 1.8 haproxy takes all records returned by the dns resolver into account where is in 1.7 only the first one in the list. That's the difference I was referring to in my previous comment. Having this in mind your setup might not work as you expect in case when your service has more than one

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-15 Thread Ludovic Gasc
I have tested with HAProxy 1.7. Where you see that it's a feature of 1.8 ? You mean I could try my piece of configuration on HAProxy 1.8, it should work ? Regards. 2017-09-15 14:47 GMT+02:00 Igor Cicimov : > > > On Fri, Sep 15, 2017 at 9:25 PM, Ludovic Gasc

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-15 Thread Igor Cicimov
On Fri, Sep 15, 2017 at 9:25 PM, Ludovic Gasc wrote: > Hi, > > I imagine that if I have no answer, it's because it isn't possible with > HAProxy ? > > Thanks for your return. > > > 2017-09-10 22:27 GMT+02:00 Ludovic Gasc : > >> Hi, >> >> I'm trying to

Re: Dynamic server name with HAProxy, based on original hostname

2017-09-15 Thread Ludovic Gasc
Hi, I imagine that if I have no answer, it's because it isn't possible with HAProxy ? Thanks for your return. 2017-09-10 22:27 GMT+02:00 Ludovic Gasc : > Hi, > > I'm trying to reproduce this Nginx configuration with HAProxy: >