Would this work aswell
refresh_pattern -i /etc/squid/wu.txt/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims
And in wu.txt
Exactly like my dstdomain
On Mon, 16 Dec 2019, 08:37 Alex Crow, <alex@xxxxxxxxxxxxxxx> wrote:
_______________________________________________On 16/12/2019 08:06, robert k Wild wrote:
How can I make a pattern that matches multiple domains please Amos?
>
> refresh_pattern -i .microsoft.com .windows.com
> .windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)
> <http://microsoft.com/.*%5C.%28cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip%29> 4320
> 80% 43200 reload-into-ims
>
That's not really a subject for this list - search online for "regex" and you will see multiple tutorials about it.
You use a syntax like "(.microsoft.com|.windows.com|(.windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)|foo.com)"
eg (x|y|z(a|b)) would match x, y, za and zb.
Cheers
Alex
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users