tor 2008-06-19 klockan 09:21 +0200 skrev Donoso Gabilondo, Daniel: > > What does your cache_peer line (and cache_peer_access/domain if any) > look > like? > > cache_peer_domain 192.168.240.22 myserver.com This won't match as you haven't told that your service is myserver.com to Squid, instead you have told that the service name is the internal IP... see below. > cache_peer_access myserver.com allow all Ok. > http_port 3128 accel defaultsite=192.168.240.22:8080 Defaultsite SHOULD be the name:port the browsers connect to, i.e. mysite.com:8080 if that's what they entier in the location bar.. The domain acl above needs to math this. > I want to use a name (/etc/hosts) and not the IP, because when the http > server fails, I can edit the /etc/hosts and change the IP to other > http_server, restart the squid and use the new http_server until the > problems of the first are solved. The IP of the web server is entered in cache_peer. No need to edit /etc/hosts.. but you can use a servername from /etc/hosts in cache_peer if you like. > Is there any better way to do this? http_port 8080 accel defaultsite=mysite.com:8080 cache_peer ip.of.webserver parent 80 0 no-query originserver cache_peer_domain ip.of.webserver mysite.com Regards Henrik