Страница 1 из 1

squid - delay_pools

Добавлено: 2009-06-19 10:34:14
mayor
в squid.conf есть строчка:

Код: Выделить всё

acl stop_http urlpath_regex -i (gif|video|zip|mpeg|mp4|mp3|wav|get_mp3|exe|avi|rar|rar?|wmv|flv|m4\.mixzona\.ru)$
ну не как не могу загнать в пул ссылку вида:
http://m4.mixzona.ru/r/get_mp3/2WrvznY2 ... 253D//mp3/
кто подскажет что не так?

Re: squid - delay_pools

Добавлено: 2009-06-19 11:10:59
skeletor
Попробуй так:

Код: Выделить всё

acl stop_http urlpath_regex -i \.gif$ \.video$ 
и так далее, по аналогии.
Кстати, почитайте ещё это, будет полезно

Acl Type: urlpath_regex

Description
The urlpath_regex regular expression pattern matching from URL but without protocol and hostname. Note that these regular expressions are case-sensitive
Usage acl aclname urlpath_regex pattern

Example
acl ACLPATHREG urlpath_regex cooking
ACLPATHREG refers only containing "cooking'' not "Cooking"; and without referring protocol and hostname.
If URL is http://www.visolve.com/folder/subdir/cooking/first.html then this acltype only looks after http://www.visolve.com/ .

Re: squid - delay_pools

Добавлено: 2009-06-19 11:37:06
mayor
короче методом тыка ссылка выше заганяется в пул вот так:
squid.conf

Код: Выделить всё

acl stop_http urlpath_regex -i '/usr/local/etc/squid/blok'
/usr/local/etc/squid/blok

Код: Выделить всё

gif
video
zip
mpeg
mp4
mp3
wav
get_mp3
exe
avi
rar
rar?
wmv
flv
m4\.mixzona\.ru
все тоже самое... но так работает