LINUX.ORG.RU
ФорумAdmin

Squid как веб ускоритель


0

0

Вот почитал книгу Бруя про Squid и веб ускоритель и наваял конфиг такого вот содержания:
http_port 80
icp_port 0
cache_mem 85 MB
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF
cache_dir ufs /var/spool/squid 200 16 256
cache_log /var/log/squid/cache.log
cache_store_log none
emulate_httpd_log on
redirect_rewrites_host_header off
refresh_pattern ^ftp:144020%10080
refresh_pattern ^gopher:14400%1440
refresh_pattern .020%4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563# https, snews
acl SSL_ports port 873# rsync
acl Safe_ports port 80# http
acl Safe_ports port 21# ftp
acl Safe_ports port 443 563# https, snews
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 Safe_ports port 631# cups
acl Safe_ports port 873# rsync
acl Safe_ports port 901# SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname on
httpd_accel_host localhost
httpd_accel_port 80
logfile_rotate 0
log_icp_queries off
buffered_logs on
coredump_dir /var/spool/squid

Набрав в консоле squid все запускается и работает без ошибок,но невидно разницы до и после его установки - даже впечатление что он так для красоты.


Работающий прокси-сервер в любой конфигурации будет являться "веб-ускорителем", для этого и был разработан этот класс программ.

DukeSS
()

Вот лог squida: FATAL: ipcache_init: DNS name lookup tests failed. Squid Cache (Version 2.5.STABLE7): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 2005/02/23 13:09:24| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu... 2005/02/23 13:09:24| Process ID 2205 2005/02/23 13:09:24| With 1024 file descriptors available 2005/02/23 13:09:24| DNS Socket created at 0.0.0.0, port 32768, FD 5 2005/02/23 13:09:24| Adding nameserver 217.21.59.1 from /etc/resolv.conf 2005/02/23 13:09:24| Adding nameserver 212.98.160.50 from /etc/resolv.conf 2005/02/23 13:09:24| User-Agent logging is disabled. 2005/02/23 13:09:24| Referer logging is disabled.

как избавится этих ошибок?

niro
() автор топика
Ответ на: комментарий от niro

Вот лог squida

FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
2005/02/23 13:09:24| Starting Squid Cache version 2.5.STABLE7 for i386-debian-linux-gnu...
2005/02/23 13:09:24| Process ID 2205
2005/02/23 13:09:24| With 1024 file descriptors available
2005/02/23 13:09:24| DNS Socket created at 0.0.0.0, port 32768, FD 5
2005/02/23 13:09:24| Adding nameserver 217.21.59.1 from /etc/resolv.conf
2005/02/23 13:09:24| Adding nameserver 212.98.160.50 from /etc/resolv.conf
2005/02/23 13:09:24| User-Agent logging is disabled.
2005/02/23 13:09:24| Referer logging is disabled.

как избавится этих ошибок?

niro
() автор топика
Ответ на: комментарий от Deleted

>Чем меряешь критерий "некэшируемости"? так как папка /var/spool/squid пуста, и невидно чтобы там были какие либо новые файлы кроме папок

niro
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.