Hello,
I have upgraded to squid 2.6 stable 2 on my debien server.
I use squid as an accelerator (and only this) in front of a http load
balancer.
My previous (obsolete) configuration was:
http_port 79
httpd_accel_host 161.3.50.16
httpd_accel_port 81
httpd_accel_with_proxy off
httpd_accel_uses_host_header off
Which I changed to:
http_port 79 defaultsite=161.3.50.16 vhost vport=81
As I want to accelerate http on port 81 on ip 161.3.50.16 where squid
listen to port 79.
When using it, I receive:
"The requested URL could not be retrieve
While trying to retrieve the URL: http://161.3.50.16:79/
The following error was encountered:
* Unable to forward this request at this time.
This request could not be forwarded to the origin server or to any
parent caches. The most likely cause for this error is that:
* The cache administrator does not allow this cache to make direct
connections to origin servers, and
* All configured parent caches are currently unreachable.
[...]
Generated Wed, 30 Aug 2006 08:54:34 GMT by
ist-guizay.univ-st-etienne.fr (squid/2.6.STABLE2)"
I read stable2 changes, expecially bug 1650 in tracker :
http://www.squid-cache.org/bugs/show_bug.cgi?id=1650
This is a known issue in stable1 that should be fixed in stable2. Can
you confirm as it is not for my configuration.
I also add that adding "always_direct allow all" does not solve my problem.
Here is my entire squid.conf if this helps:
http_port 79 defaultsite=161.3.50.16 transparent vhost vport=81
emulate_httpd_log on
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 300 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size_in_memory 128 KB
cache_dir ufs /var/spool/squid 500 16 256
hosts_file /etc/hosts
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 to_ist_guizay dst 161.3.50.16
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 81 # pound
acl Safe_ports port 79 # squid
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 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 allow to_ist_guizay
http_access deny all
http_reply_access allow all
coredump_dir /var/spool/squid
--
Christophe Gravier
Laboratoire DIOM, équipe SATIn - Doctorant http://portail-istase.univ-st-etienne.fr/diom/FRA/Satin.php
ISTASE - Ingénieur d'études http://www.istase.com
Perso: http://portail-istase.univ-st-etienne.fr/diom/public/cgravier/