If you've got a small mapping of paths-ports you could still generate a 
static config with a few backends to do this:

frontend main

   use_backend one if { path_beg /uri_one }

   use_backend two if { path_beg /uri_two }


backend one

   server      web1 localhost:3000


backend two

   server      web1 localhost:3001


  Your example config format afterall wasn't dynamic (the acl's all had 
to be predefined?) Would this do the job?

Joe

On 29/07/13 16:08, Baptiste wrote:
> Hi Jerome,
>
> This is not doable for now.
>
> Cheers.
>
> On Mon, Jul 29, 2013 at 4:33 PM, Jérôme Saada<[email protected]>  wrote:
>> anybody could please tell me if that is possible ?
>>
>> best regards
>>
>> On 18/07/2013 15:06, Jérôme Saada wrote:
>>
>> hello,
>>
>> i would like to change the backend's port dynamically,
>> is it possible to do something like:
>>
>>
>> frontend  main
>>      acl myport=3000 path_beg -i /uri_one
>>      acl myport=3001 path_beg -i /uri_two
>>
>> backend back
>>      server      web1 localhost:${myport}
>>
>>
>> today, for this purpose i have to create multiple backend for each port
>>
>> thanx for any help
>>
>>
>>
>>
>>
>>
>> --
>>
>> jérôme saada | architecte logiciel et materiel | mediastay
>> [email protected] | tel: +33 4 82 53 94 26 | mobile: +33 634629790

Reply via email to