Re: How do you tell if a url has a path

2014-07-08 Thread Baptiste
On Tue, Jul 8, 2014 at 6:55 AM, Jeffrey Scott Flesher Gmail wrote: > I want to check the URL to see if any path is passed, > http://domain.tdl > or > http://domain.tdl/ > as such, both of these are considered not to have a path, > my problem is that I only want to rewrite the path, > if either of

Re: Difference between "Disable" and "soft stop"

2014-07-08 Thread Baptiste
On Mon, Jul 7, 2014 at 10:12 PM, Pavlos Parissis wrote: > On 07/07/2014 11:49 πμ, David wrote: >> Hello, >> >> I have installed HAproxy 1.5 in my RDS farm. But when i check the "disable" >> option for one server, this server is still active in my farm and users can >> connect to it ? >> > > I assu

Re: Need help with url rewrite

2014-07-08 Thread Baptiste
On Fri, Jul 4, 2014 at 8:42 PM, Jeffrey Scott Flesher Gmail wrote: > If a Picture is worth a 1000 Words: > If the url does not have any path like this: > http://mad-news.net/ > > acl has_ww_uri path_beg -i /ww > returns false > > reqirep ^([^\ :]*)\ /(.*) \1\ /ww/\2 if !has_ww_uri > http://mad-new

Re: Using the socket interface to access ACLs

2014-07-08 Thread Baptiste
On Mon, Jul 7, 2014 at 8:31 PM, William Jimenez wrote: > > > > On Thu, Jul 3, 2014 at 5:59 AM, Baptiste wrote: >> >> On Thu, Jul 3, 2014 at 2:24 PM, Thierry FOURNIER >> wrote: >> > On Tue, 1 Jul 2014 23:00:13 +0200 >> > Baptiste wrote: >> > >> >> On Tue, Jul 1, 2014 at 10:54 PM, William Jimenez

Re: Detecting if the the client connected using SSL

2014-07-08 Thread Baptiste
On Mon, Jul 7, 2014 at 12:17 PM, Dennis Jacobfeuerborn wrote: > On 07.07.2014 08:57, Baptiste wrote: >> On Mon, Jul 7, 2014 at 3:48 AM, Dennis Jacobfeuerborn >> wrote: >>> Hi, >>> I'm experimenting with the SSL capabilities of haproxy and I'm wondering >>> if there is a way to detect if the clien

Re: Stick Table on Websocket - No stats data in table

2014-07-08 Thread Baptiste
On Fri, Jul 4, 2014 at 6:56 AM, Jai Gupta wrote: > We are using stick table with Websocket. Although haproxy stats page shows > correct session rate, current session info but all counters are zero in > stick table. > > backend websocket > balance leastconn > stick-table type string len 12

Re: [PATCH] DOC: expand the docs for the provided stats.

2014-07-08 Thread Willy Tarreau
Hi James, On Mon, Jul 07, 2014 at 09:36:36PM -0400, James Westby wrote: > This time with improved formatting, and "pxname" fixed. I just found that the patch did not apply, it was made against an older version it seems. Anyway, I could reapply your changes by hand. I tried to be careful, please d

Re: Abstract namespace sockets handling

2014-07-08 Thread hodor
On 2014-07-08, 01:24:18, Willy Tarreau wrote: > > But that would kill the possibility of two processes inside different > > chroots to communicate efficiently (without some mount --bind tricks). > > > > (I don't have any practical example of such a setup, though :)) > > Yes that's the same concl

Re: Abstract namespace sockets handling

2014-07-08 Thread Willy Tarreau
Hi, On Tue, Jul 08, 2014 at 02:57:53PM +0200, hodor wrote: > > So I've pushed that and backported into 1.5 as well before everyone starts > > to get upset by this nasty behaviour. > > Just tried it and seems to work great :). It even recovers the abstract > sockets smoothly if the new instance fa

[PATCH] DOC: expand the docs for the provided stats.

2014-07-08 Thread James Westby
Indicate for each statistic which types may have a value for that statistic. Explain some of the provided statistics a little more deeply. --- doc/configuration.txt | 163 +++--- 1 file changed, 100 insertions(+), 63 deletions(-) Hi, I like the short

LB EDIFACT files

2014-07-08 Thread Andrey Zakabluk
Hi!I use haproxy for balancing http request - this is better LB)! And now I tru ballancing EDIFACT files. 1st step I try just forwarding request between server GMD and server COMARCH via Haproxy. --Plan(How this work?) server GMD send EDIFACT file to --> haproxy:7446, haproxy send -->

Re: Stick Table on Websocket - No stats data in table

2014-07-08 Thread Jai Gupta
On Tue, Jul 8, 2014 at 1:47 PM, Baptiste wrote: > On Fri, Jul 4, 2014 at 6:56 AM, Jai Gupta wrote: > > We are using stick table with Websocket. Although haproxy stats page > shows > > correct session rate, current session info but all counters are zero in > > stick table. > > > > backend websock

Re: Detecting if the the client connected using SSL

2014-07-08 Thread Dennis Jacobfeuerborn
On 08.07.2014 10:14, Baptiste wrote: > On Mon, Jul 7, 2014 at 12:17 PM, Dennis Jacobfeuerborn > wrote: >> On 07.07.2014 08:57, Baptiste wrote: >>> On Mon, Jul 7, 2014 at 3:48 AM, Dennis Jacobfeuerborn >>> wrote: Hi, I'm experimenting with the SSL capabilities of haproxy and I'm wonderin

Re: [PATCH] DOC: expand the docs for the provided stats.

2014-07-08 Thread Willy Tarreau
Hi James, On Tue, Jul 08, 2014 at 10:14:57AM -0400, James Westby wrote: > I like the short names after the field names, so I've implemented > that. I also rebased on top of master (turns out the github mirror was > outdated), and included the listener information. Great they applied fine this tim

Re: Abstract namespace sockets handling

2014-07-08 Thread hodor
Hello, On 2014-07-08, 15:26:32, Willy Tarreau wrote: > Not exactly, I know what's happening, you have a frontend which had both > a unix socket and an abstract socket. When resuming, the abstract socket > failed and the proxy was marked in error so polling was not re-enabled on > its listeners. I

Re: Abstract namespace sockets handling

2014-07-08 Thread Willy Tarreau
Hi, On Tue, Jul 08, 2014 at 10:36:10PM +0200, hodor wrote: > Hello, > > On 2014-07-08, 15:26:32, Willy Tarreau wrote: > > Not exactly, I know what's happening, you have a frontend which had both > > a unix socket and an abstract socket. When resuming, the abstract socket > > failed and the proxy

Re: [PATCH] DOC: expand the docs for the provided stats.

2014-07-08 Thread James Westby
Willy Tarreau writes: > Great they applied fine this time and I also prefer the way they look > now. Thanks, glad to see this merged. Plus I have to compliment you on your response to a first time contributor. Thanks, James

Re: Using the socket interface to access ACLs

2014-07-08 Thread Thierry FOURNIER
On Thu, 3 Jul 2014 14:59:46 +0200 Baptiste wrote: > On Thu, Jul 3, 2014 at 2:24 PM, Thierry FOURNIER > wrote: > > On Tue, 1 Jul 2014 23:00:13 +0200 > > Baptiste wrote: > > > >> On Tue, Jul 1, 2014 at 10:54 PM, William Jimenez > >> wrote: > >> > Hello > >> > I am trying to modify ACLs via the

Re: [PATCH] DOC: expand the docs for the provided stats.

2014-07-08 Thread Willy Tarreau
On Tue, Jul 08, 2014 at 05:15:09PM -0400, James Westby wrote: > Willy Tarreau writes: > > Great they applied fine this time and I also prefer the way they look > > now. > > Thanks, glad to see this merged. > > Plus I have to compliment you on your response to a first time > contributor. Hehe, n