Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
Squid nie robi cache http://forum.freesco.pl/viewtopic.php?f=22&t=8213 |
Strona 1 z 1 |
Autor: | Colnet [ niedziela, 17 lipca 2005, 17:31 ] |
Tytuł: | Squid nie robi cache |
NND ze stycznia 2005. squid.conf poniżej. Nadałem prawa katalogom jak w opisie na stronce NND, squid nawet utworzył katalogi przy mojej pomocy po wpisaniu komendy squid -z w katalogu gdzie ten cache ma być. Istnieje wpis w /etc/rc.conf - start demona squid jako jedno słowo : squid w linijce ze startem demonów. Nie zrobiłem na razie jako transparent żeby nie irytować przestojami www userów w sieci. Przełączyłem swojego IE na port 8080 żeby sprawdzić - i kicha - nie działa. Zajrzałem do katalogów cache, ale tam też nic - pusto. W logach - pusto. Ok, a teraz squid.conf : =========================================== http_port 8080 icp_port 3130 pid_filename /var/run/squid.pid cache_mem 48 MB store_avg_object_size 16 MB maximum_object_size 16384 KB cache_dir ufs /bick/squid/cache 1000 16 256 cache_log /var/log/squid dns_nameservers 127.0.0.1 192.168.1.1 192.168.2.1 194.204.159.1 # Tworzę grupę "nasi" której adresem sieciowym jest adres sieci acl nasi src 192.168.1.0/255.255.255.0 192.168.2.0/255.255.255.0 # Oraz grupę wszystkich adresów sieciowych "all" 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 SSL_ports port 443 563 acl Safe_ports port 80 21 443 563 70 210 280 488 591 1025-65535 acl CONNECT method CONNECT acl MCONN maxconn 30 # I zezwalam grupie "nasi" na korzystanie z proxy http_access allow nasi http_access allow localhost http_access allow manager localhost http_access deny manager # http_access deny to localhost http_access deny MCONN nasi http_access deny CONNECT !SSL_ports http_access deny !Safe_ports http_access deny all # Maska sieciowa komputerów klienckich client_netmask 255.255.255.0 acl FTP proto FTP # squid nie wtr±ca się do FTP always_direct allow FTP # aby użytkownicy nie mieli żadnych problemów z ftp ftp_passive off # Adres administratora cache_mgr universis@poczta.onet.pl cachemgr_passwd xxxxx all httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on visible_hostname universis # Logi cache_log /var/log/squid/cache.log cache_access_log none cache_store_log none # cache_access_log /var/log/squid/access.log # cache_store_log /var/log/squid/store.log logfile_rotate 2 # Nie keszujemy obiektów z adresów URL zawieraj±cych odniesienia do # skryptów CGI acl QUERY urlpath_regex cgi-bin cgi /? hierarchy_stoplist cgi-bin ? no_cache deny QUERY # reguły odświeżania refresh_pattern -i (.*jpg$|.*gif$) 0 50% 28800 refresh_pattern -i (.*html$|.*htm|.*shtml) 0 20% 1440 refresh_pattern (http://.*/$) 0 20% 1440 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 # adres pliku z komunikatami o błędach (polskie) error_directory /etc/squid/errors/Polish ============================================= Proszę o jakąś pomoc w uruchomieniu squida. |
Autor: | Maciek [ niedziela, 17 lipca 2005, 18:57 ] |
Tytuł: | |
Sprawdź w /var/log/messages, co się dzieje po uruchomieniu squida... |
Autor: | Colnet [ niedziela, 17 lipca 2005, 19:18 ] |
Tytuł: | |
Maciek pisze: Sprawdź w /var/log/messages, co się dzieje po uruchomieniu squida...
W tym pliku o squidzie jest coś takiego : Jul 17 17:58:17 universis squid[773]: Squid Parent: child process 780 started Jul 17 17:58:18 universis squid[773]: Squid Parent: child process 780 exited due to signal 6 Jul 17 17:58:21 universis squid[773]: Squid Parent: child process 810 started Jul 17 17:58:21 universis squid[773]: Squid Parent: child process 810 exited due to signal 6 Jul 17 17:58:24 universis squid[773]: Squid Parent: child process 825 started Jul 17 17:58:24 universis squid[773]: Squid Parent: child process 825 exited due to signal 6 Jul 17 17:58:27 universis squid[773]: Squid Parent: child process 853 started Jul 17 17:58:28 universis squid[773]: Squid Parent: child process 853 exited due to signal 6 Jul 17 17:58:31 universis squid[773]: Squid Parent: child process 881 started Jul 17 17:58:31 universis squid[773]: Squid Parent: child process 881 exited due to signal 6 |
Autor: | pasztet [ czwartek, 21 lipca 2005, 15:58 ] |
Tytuł: | re |
Mialem to kiedys.Jezeli przy tworzenieu cachu nie wywala błędu to sprawdz czy plik z logami istnieje (cache_log /var/log/squid ) i czy ma uprawnienia dla usera nobody chyba... |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |