Re: [squid-users] how to write this urlpath_regex

From: huang mingyou <therods@dont-contact.us>
Date: Thu, 1 Jun 2006 09:58:41 +0800

hello, everyone
       I had solved this problem only change the bbs to .*bbs.*php$ ,
.*bbs.*jsp$ etc.
thanks your reply!

2006/5/31, Visolve squid <squid@visolve.com>:
> On Tue, 2006-05-30 at 10:30 +0800, huang mingyou wrote:
> > hello,list.
> > I get a problem when I write a filter rule. I have two urls.
> > http://host/bbs/1.php and http://host/bbs/foo/bar/x.jpg
> > now,I want the squid can cache the jpg file but no cache for php
> > or other script file.
> > if I use urlpath_regex bbs php or other rule,the
> > http://host/bbs/foo/bar/x.jpg wile be filter too.
> > so ,how to write a rule,fileter bbs in the url but if have jpg ,then not filter.
> >
>
> Hello Huang,
>
> By default squid donīt cache this acl type
> acl QUERY urlpath_regex cgi-bin \?
> no_cache deny QUERY
>
> you can to add \.php$
>
> For more details visit this page:
> http://jmason.org/software/sitescooper/tao_regexps.html
> and no_cache directive.
>
> Thanks,
> Visolve Squid Team,
> http://squid.visolve.com
>
>

-- 
Huang Mingyou
Received on Fri Jun 02 2006 - 15:00:03 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT