Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Squid 3.1.19(не отображаются картинки на странице news.yandex.ru)  (Прочитано 3013 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн max220

  • Автор темы
  • Новичок
  • *
  • Сообщений: 43
    • Просмотр профиля
tcp_outgoing_address 0.0.0.0 all

acl block dstdomain "/etc/squid3/block.acl"
acl school src 192.168.1.0/255.255.255.0

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1


acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access deny block
http_access allow school
http_access deny all

http_access allow localhost

http_port 192.168.1.1:3128

cache_mem 256 MB
cache_dir ufs /var/spool/squid3 100 16 256

# access_log /var/log/squid3/access.log squid

coredump_dir /var/spool/squid3

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
# example lin deb packages
#refresh_pattern (\.deb|\.udeb)$   129600 100% 129600
refresh_pattern . 0 20% 4320

#  TAG: quick_abort_min (KB)
#Default:
# quick_abort_min 16 KB

#  TAG: quick_abort_max (KB)
#Default:
# quick_abort_max 16 KB

#  TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
# define this.  Otherwise, the return value of gethostname()
# will be used. If you have multiple caches in a cluster and
# get errors about IP-forwarding you must set them to have individual
# names with this setting.
#Default:
visible_hostname MySquid

Пользователь решил продолжить мысль 23 Апреля 2013, 11:11:14:
Помогите пожалста ... :)
Или может кто знает как сделать чтоб некоторые сайты открывались не кэшируясь?
на многих сайтах не открываются картинки что делать даже не знаю...
Гуглю не первый час немогу найти ответа...

Пользователь решил продолжить мысль 23 Апреля 2013, 11:54:39:
Через Сквид не проходит
http://psh.tom.ru/index.php/component/joomgallery/image?format=raw&type=thumb&id=401&width=83&height=83&pos=2
почему не могу понять

Пользователь решил продолжить мысль 23 Апреля 2013, 12:23:41:
странно на другом компе такиеще настройки и все работает  :idiot2:

Пользователь решил продолжить мысль 23 Апреля 2013, 19:29:28:
На сервере все замечательно открывается, а из локалки нет.
в чём может быть дело?

Пользователь решил продолжить мысль 23 Апреля 2013, 19:54:25:
1366732311.869    237 192.168.1.1 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
1366732312.746    241 192.168.1.1 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
1366732313.486    237 192.168.1.1 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
1366732316.069    240 192.168.1.4 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
1366732316.804    246 192.168.1.4 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
1366732317.473    303 192.168.1.4 TCP_MISS/200 6379 GET http://psh.tom.ru/index.php/component/joomgallery/image? - DIRECT/217.29.86.183 image/jpeg
c 192.168.1.1 все открывается(это Ubuntu на котором запущен squid)
на 192.168.1.4 не открывается.
тестировал эту ссылку на фото
http://psh.tom.ru/index.php/component/joomgallery/image?format=raw&type=thumb&id=401&width=83&height=83&pos=2
« Последнее редактирование: 23 Апреля 2013, 19:54:25 от max220 »

Оффлайн max220

  • Автор темы
  • Новичок
  • *
  • Сообщений: 43
    • Просмотр профиля
Все дело было в Антивирусе Касперском на клиентских машинах.
снял в каспере глочку ограничить время кеширование и все заработало.

 

Страница сгенерирована за 0.016 секунд. Запросов: 21.