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

robert k Wild robertkwild at gmail.com
Tue May 5 14:27:04 UTC 2020


Thanks a lot Amos, as always you have been very helpful

Much appreciated mate

Rob

On Tue, 5 May 2020, 14:55 Amos Jeffries, <squid3 at treenet.co.nz> wrote:

> 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
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20200505/3aa0b170/attachment.html>


More information about the squid-users mailing list