On 6/8/07, Chris Robertson <crobertson@xxxxxxx> wrote:
Santiago Del Castillo wrote: > > On 6/8/07, squid3@xxxxxxxxxxxxx <squid3@xxxxxxxxxxxxx> wrote: >> > That didn't work well >> > >> > I used \([1-9]|[1-4][0-9]|50\) and saw: >> > >> > 2007/06/07 18:23:10| Failed to select source for >> > 'http://www2.xxxxxx.com/2/AF/AA/Sol/last_photo.jpg' >> > 2007/06/07 18:23:10| always_direct = 0 >> > 2007/06/07 18:23:10| never_direct = 0 >> > 2007/06/07 18:23:10| timedout = 0 >> > >> > The pattern I found is that it just fails with units ([1-9]) the rest >> > works OK. What it could be? >> > >> > Tried to use [123456789] and it also fails. >> > >> > Cheers, >> > Santiago >> > >> >> Um, maybe something to do with branches in the match >> give this a test and see if it works better >> >> \([1-4]\([0-9]\)?|50|[5-9]\) >> >> Amos > Didn't work either :( Please don't post your replies at the top of the message. It makes the archives hard to read. To be perfectly clear, can you repost your squid.conf (minus comments and blank lines*)? Perhaps there is a different configuration issue at play. * From a Unix-like host the following line (with the proper path to your squid.conf) will manage this: grep -v "^#" /path/to/squid.conf | sed -e '/^$/d'
Hi chris didn't know that about posting on top of the message. Sorry about that! I fixed the problem by usen visual REGEXP to make the regexp and I deleted the backslashes from the parentheses... here's what I got and works great: acl flodeo dstdom_regex ^www(6|7|8|9|[1234][0123456789]?|50?)\.example\.com$ Thank you all for the help!! Santiago