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? > > HTH, > > Alex.