Search squid archive

Re: cache error with regex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 15 Jun 2009 02:23:38 +0700, "tommy@xxxxxxxxxxx" <tommy@xxxxxxxxxxx>
wrote:
> dear all...
> 
> i trying to caching youtube in my openbsd 4.5 box, with
> squid-2.7-stable-3, but i found this error :
> 
> squid -k parse
> 
> 2009/06/15 02:17:16| squid.conf line 40: acl store_rewrite_list
> url_regex ^http://(.*?)/get_video\?

 (.*?)  is invalid.

? means individual item preceeding may not exist.
.* means entire string of individual characters which may have zero length.

I'm not sure what its supposed to be. (.*)? is a more valid regex, but a
non-existent domain in a FQDN is not valid HTTP.
that probably wants to be ([a-z0-9\-]*\.)*([a-z0-9\-])?

or just (.*)


Amos

> 2009/06/15 02:17:16| aclParseRegexList: Invalid regular expression
> '^http://(.*?)/get_video\?': repetition-operator operand invalid
> 2009/06/15 02:17:16| aclParseAclLine: WARNING: empty ACL: acl
> store_rewrite_list url_regex ^http://(.*?)/get_video\?
> 2009/06/15 02:17:16| squid.conf line 41: acl store_rewrite_list
> url_regex ^http://(.*?)/videodownload\?
> 2009/06/15 02:17:16| aclParseRegexList: Invalid regular expression
> '^http://(.*?)/videodownload\?': repetition-operator operand invalid
> 
> something wrong with this regex? please help me...
> 
> 
> regards,
> 
> tommy

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux