Using Squid on Debian, Cannot Connect Error
Posted
by
Zed Said
on Server Fault
See other posts from Server Fault
or by Zed Said
Published on 2012-04-11T22:40:19Z
Indexed on
2012/04/11
23:32 UTC
Read the original article
Hit count: 489
I am trying to set up Squid on Debian and am getting a connection refused error:
squidclient http://www.apple.com/ > test
client: ERROR: Cannot connect to 127.0.0.1:3128: Connection refused
Here is my config:
visible_hostname none
cache_effective_user proxy
cache_effective_group proxy
cache_dir ufs /var/spool/squid 2048 16 256
cache_mem 512 MB
cache_access_log /var/log/squid/access.log
emulate_httpd_log on
strip_query_terms off
read_ahead_gap 128 Kb
collapsed_forwarding on
refresh_stale_hit 30 seconds
retry_on_error on
maximum_object_size_in_memory 1 MB
acl all src 0.0.0.0/0.0.0.0
acl purgehosts src 127.0.0.1/255.255.255.255
# Caching static objects in __data is important.
# Without that, apache processes sit around spooling static objects.
acl QUERY urlpath_regex /cgi-bin/ /_edit /_admin /_login /_nocache /_recache /__lib /__fudge
acl PURGE method PURGE
acl POST method POST
cache deny QUERY
cache deny POST
http_access allow PURGE purgehosts
http_access deny PURGE
http_access allow all
http_port 127.0.0.1:80
http_port 50.56.206.139:80
cache_peer 127.0.0.1 parent 80 0 originserver no-query no-digest default
redirect_rewrites_host_header off
read_ahead_gap 128 Kb
shutdown_lifetime 5 seconds
Any ideas why this is happening? What have I missed?
© Server Fault or respective owner