Re: need help figuring out a sticking method

From: Willy Tarreau <w#1wt.eu>
Date: Mon, 18 Oct 2010 07:35:54 +0200


On Sun, Oct 17, 2010 at 08:30:26PM -0700, Hank A. Paulson wrote:
> Anyone have any ideas about how much effort it would take to add
> substring of url_path as a stick pattern? Current stick patterns are noted
> in section 7.8 of the 1.4.8 manual but don't currently include substring :(

The main issue is to define how to delimit this substring. I thought that defining that with a regex could be nice, but I'd rather avoid to reinvent a notation if some people are already used to a specific way of doing this. If nobody has any preference, I'd use something a-la-sed, by delimiting the block with parenthesis then referencing the block number. The syntax will become scary and that's probably what has refrained me for a long time :-/

> >example.com/something/:delim:K:delim:unique_session_info_here:delim::delim:/more_path_stuff...

Willy Received on 2010/10/18 07:35

This archive was generated by hypermail 2.2.0 : 2010/10/18 07:45 CEST