[squid-users] allowing zip only for a specific url regex

Amos Jeffries squid3 at treenet.co.nz
Tue May 5 13:54:38 UTC 2020


On 6/05/20 1:39 am, robert k Wild wrote:
> Thanks Amos,
> 
> so how would I allow these urls with a wild card thenĀ 
> 
> Http://domain.com/path/1/to/any/where
> 
> Http://domain.com/path/2/to/any/where
> 
> Would I do this
> 
> Http://domain.com/path/*
> 

No. As the url_regex ACL name says, these are regex patterns.

You have to use special anchors (^ and $) to *prevent* them being
wildcard matches.

Simply do like this:

  ^http://domain\.com/path/



Cheers
Amos


More information about the squid-users mailing list