[GRLUG] squid configuration troubles

Michael Mol mikemol at gmail.com
Sun Oct 2 23:11:12 EDT 2011


On Sun, Oct 2, 2011 at 4:00 PM, Michael Mol <mikemol at gmail.com> wrote:
> Anyone familiar enough with squid to help me figure out what I'm doing
> wrong here? (Running squid3, hence the IPv6 support)
>
> #squid.conf
>
> acl mySites dstdomain rosettacode.org www.rosettacode.org
> acl localhost src 127.0.0.1 ::1
>
> http_access allow mySites
> cache_dir ufs /var/spool/squid3 10240 15 256
>
> # non-ssl
> http_port [2605:2700:0:3::4713:91bf]:80 accel defaultsite=rosettacode.org
> http_port 71.19.145.191:80 accel defaultsite=rosettacode.org
> cache_peer 127.0.0.1 parent 80 0 no-query originserver name=httpAccel
> cache_peer_access httpAccel deny all
>
> # ssl
> https_port [2605:2700:0:3::4713:91bf]:443
> cert=/etc/ssl/private/ssl.crt key=/etc/ssl/private/ssl.key accel
> defaultsite=rosettacode.org
> https_port 71.19.145.191:443 cert=/etc/ssl/private/ssl.crt
> key=/etc/ssl/private/ssl.key accel defaultsite=rosettacode.org
> #cache_peer 127.0.0.1 parent 443 0 no-query originserver name=httpsAccel
> #cache_peer_access httpsAccel allow mySites
>
> # Allow purging.
> acl PURGE method PURGE
> http_access allow PURGE localhost
> http_access deny PURGE

OK, I could have *sworn* I included log entries and symptoms.  Here's
what shows up in the browser and in logs:

###
# Result
###

ERROR

The requested URL could not be retrieved

The following error was encountered while trying to retrieve the URL:
http://rosettacode.org/

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.

Your cache administrator is webmaster.


Generated Sun, 02 Oct 2011 19:48:40 GMT by localhost (squid/3.1.6)


####
# cache.log
####

2011/10/02 19:48:40| Failed to select source for 'http://rosettacode.org/'
2011/10/02 19:48:40|   always_direct = 0
2011/10/02 19:48:40|    never_direct = 0
2011/10/02 19:48:40|        timedout = 0

-- 
:wq

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list