Hi Gustavo,
> Below is my haproxy.cfg:
We will need to know the exact release you are using, because they
have different defaults.
Regards,
Lukas
I got this to work:
use_backend %[path,lower,map_reg(/path/tofile)]
and with a map file containing:
^\/sebseb/
^\/test2/
and so on..
Only issue is the performance hit.. its going to do regex match with
path on each line in the map file.. :(
I'd prefer to find a function to replace path..
Right, sorry.
I compiled 1.6.3 from source with the options: TARGET=custom USE_PCRE=1
USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1 USE_OPENSSL=yes
Gustavo
On 28 January 2016 at 16:47, Lukas Tribus wrote:
> Hi Gustavo,
>
>
> > Below is my haproxy.cfg:
>
> We will need to know the
Hi Lukas,
I have changed my configurations accordingly and it's working.
Thank you very much!
Gustavo
On 28 January 2016 at 18:04, Lukas Tribus wrote:
> Hi Gustavo,
>
>
>
> > I compiled 1.6.3 from source with the options: TARGET=custom USE_PCRE=1
> > USE_LINUX_SPLICE=1
Hi Gustavo,
> I compiled 1.6.3 from source with the options: TARGET=custom USE_PCRE=1
> USE_LINUX_SPLICE=1 USE_LINUX_TPROXY=1 USE_OPENSSL=yes
Unless you have a kernel older than 2.6.28, just use the linux2628
target:
TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1
This will enable all current
I've been running into a problem for a few weeks that I was hoping to see
disappear w/ a simple upgrade to 1.6.3.
I'm using consul and it's templating to dynamically expand a backend list
which then runs an haproxy reload using the init scripts in the contrib dir.
I haven't been able to trace
On 28/01/2016 10:35 μμ, David Birdsong wrote:
> I've been running into a problem for a few weeks that I was hoping to
> see disappear w/ a simple upgrade to 1.6.3.
>
> I'm using consul and it's templating to dynamically expand a backend
> list which then runs an haproxy reload using the init
>> If you can't use layer 7 features then you can't access the
>> CF-Connecting-IP header in nginx.
>
> ...HAProxy, not Nginx, no ?
Yes, I mixed that up, haproxy was what I meant.
> Otherwise that would be nice to be able pass client IP address as an
> argument to send-proxy directive.
>
2016-01-28 11:47 GMT+01:00 Lukas Tribus :
> Doesn't:
> http-request set-src hdr(CF-Connecting-IP)
>
> in combination with a standard proxy-protocol config
> already do that?
Yes, but it doesn't work with SPDY or HTTP/2 backends.
--
Jonathan Leroy
http://www.inikup.com/
Tel:
Am 28-01-2016 12:01, schrieb Jonathan Leroy - Inikup:
2016-01-28 11:47 GMT+01:00 Lukas Tribus :
Doesn't:
http-request set-src hdr(CF-Connecting-IP)
in combination with a standard proxy-protocol config
already do that?
Yes, but it doesn't work with SPDY or HTTP/2
2016-01-28 10:56 GMT+01:00 Aleksandar Lazic :
> Maybe it would be a nice idea to add something like.
>
> proxy-protocol set-src hdr(CF-Connecting-IP)
>
> Opinions about this?
Something like "proxy-protocol set-src []", yep :)
--
Jonathan Leroy
http://www.inikup.com/
Tel:
> Maybe it would be a nice idea to add something like.
>
> proxy-protocol set-src hdr(CF-Connecting-IP)
>
> Opinions about this?
Doesn't:
http-request set-src hdr(CF-Connecting-IP)
in combination with a standard proxy-protocol config
already do that?
Lukas
hi,
i'm using HAProxy mainly to redistribute HTTP(S) requests to different
backends depending on their domain (via host header) to implement vhosts
on a single IP.
i'd like to have the same for SMTP, but unfortunately it's much harder,
since we get to know the target domain late in the
Hi guys,
I figured I could use map feature of 1.5, but I'm coming up short,
trying to change this:
use_backend %[req.hdr(host),lower,map(/path/tofile)]
To instead take a part of the uri.
I can't find any list of functions (such as hdr, hdr_end etc.) in the
docs :(
I figured I could use
On Fri, Jan 29, 2016 at 2:27 AM, Klavs Klavsen wrote:
> I got this to work:
>
> use_backend %[path,lower,map_reg(/path/tofile)]
>
> and with a map file containing:
> ^\/sebseb/
> ^\/test2/
>
> and so on..
>
> Only issue is the performance hit.. its going to do regex match with path
On Thu, Jan 28, 2016 at 6:35 PM, Pavlos Parissis
wrote:
> On 28/01/2016 10:35 μμ, David Birdsong wrote:
> > I've been running into a problem for a few weeks that I was hoping to
> > see disappear w/ a simple upgrade to 1.6.3.
> >
> > I'm using consul and it's
Hi,
I am not sure if there is a better way, but the only one I can think of
would be something like:
http-request set-header X-Tmp %[path]
http-request replace-header X-Tmp /([^/]+) \1
use_backend %[req.hdr(X-Tmp),lower,map(/path/tofile)]
No idea which one is preferable with regards
18 matches
Mail list logo