Hi Aleks,
thanks for your reply.

I've decide to use the regular expression:
path_reg /web$|/web/

unless there are other suggestions.

Regards,
Eoin



-----Original Message-----
From: Aleksandar Lazic [mailto:al-hapr...@none.at]
Sent: 12 February 2010 16:05
To: Mallin, Eoin
Cc: haproxy@formilux.org
Subject: Re: ACL matching on URLs


*************************************

This e-mail has been received by the Revenue Internet e-mail service. (IP)

*************************************

Hi Mallin Eoin,

On Fre 12.02.2010 14:43, Mallin, Eoin wrote:
>
>Hi all,
>I'm looking for the best approach for matching the first part of a URL
>in ACLs. Some examples of the types of URLs include:

[snipp]

how about

>Won't work
>acl backend1_acl path_beg /web

acl backend1_acl path_beg /web/
                              ^^^
>acl backend2_acl path_beg /webservices

acl backend2_acl path_beg /webservices/

>use_backend1 if backend1_acl
>use_backend2 if backend2_acl

or is it thought so simple?

Most of the Browser adds the '/' at the end of the 'directory', imho.

BR

Aleks


*********************************************************************

Please note that Revenue cannot guarantee that any personal 
and sensitive data, sent in plain text via standard email, 
is fully secure. Customers who choose to use this channel 
are deemed to have accepted any risk involved. The alternative 
communication methods offered by Revenue include standard post 
and the option to register for our (encrypted) secure email service.
http://www.revenue.ie/en/practitioner/secure-email.html

*********************************************************************

Reply via email to