Search squid archive

Re: Unknown cfg function

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

 



Please also, in future for 3.HEAD code (which is only just past being ALPHA quality), please post problems to bugzilla or the squid-dev mailing list.

Why? Because 99.99% of the people reading this mailing list will never care about this problem. Major problems like this which the dev list hear about will usually be fixed long before the code causing it hits a stable release.


On 27/07/2013 1:20 p.m., Alex Rousskov wrote:
On 07/26/2013 06:53 PM, Marcos A. Dzieva wrote:
2013/07/26 21:47:08| Processing: acl dontrewrite url_regex -i
"c\.youtube\.com\/.*(begin|start)\=.*"
2013/07/26 21:47:08| Processing: acl dontrewrite url_regex  redbot\.org
2013/07/26 21:47:08| Processing: acl getmethod method GET
2013/07/26 21:47:08| Processing: acl redir urlpath_regex -i
&redirect_counter=1&cms_redirect=yes
2013/07/26 21:47:08| Processing: acl redir urlpath_regex -i &ir=1&rr=12
2013/07/26 21:47:08| Processing: acl yutub url_regex -i
"youtube\.com\/(generate_204|ptracking|stream_204|player_204|s|(.*(playback|watchtime|delayplay)))\?.*$"

2013/07/26 21:47:08| Unsupported cfg macro: $"
This is a different, albeit related problem. The quoted string prevented
Squid from interpreting function()s inside your pattern, but forced
Squid to look for $macros instead.

Please try removing the quotes but setting
configuration_includes_quoted_values to off.

See "Values with spaces, quotes, and other special characters" in
squid.conf.documented for more details about related changes. We
obviously need to do more to make this transition less painful.


HTH,

Alex.


-----Mensagem Original----- From: Alex Rousskov
Sent: Friday, July 26, 2013 7:54 PM
To: Marcos A. Dzieva
Cc: Squid forum
Subject: Re:  Unknown cfg function

On 07/26/2013 09:39 AM, Marcos A. Dzieva wrote:
Dear...

Squid work fine with squid-3.HEAD-20130716-r12946 version, after
compiled with squid-3.HEAD-20130726-r12960 the following error occurs:

2013/07/26 12:14:09| Processing: acl dontrewrite url_regex -i
c\.youtube\.com\/.*(begin|start)\=.*
2013/07/26 12:14:09| Unknown cfg function: c\.youtube\.com\/.*
FATAL: Bungled /etc/squid/squid.conf line 23: acl dontrewrite url_regex
-i c\.youtube\.com\/.*(begin|start)\=.*

What should I do to solve this?
Squid thinks you are calling a function called c\.youtube\.com\/.*
because of the parenthesis that follow. We should probably restrict
function detection to alphanumeric characters to minimize such problems.

Meanwhile, try quoting the entire regex:

  acl dontrewrite url_regex -i "c\.youtube\.com\/.*(begin|start)\=.*"

Does that work?

Additionaly, please note that these are incorrect regex patterns. There is *zero* need to place the wildcard .*$ sequence at the end of that refresh_pattern regex. All it does is cause the regex library extra work which slows down your proxy. Same thing for the .* on the end of the ACL line.

Amos




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

  Powered by Linux