[squid-users] Use parent proxy when direct failed

From: Sébastien WENSKE <sebastien_at_wenske.fr>
Date: Thu, 18 Dec 2008 11:58:49 +0100

Hi all,

I need to setup squid to use a parent proxy when direct connection failed.

--------------------------------------------------------------------------
acl playlist dstdomain .yacast.net

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all

cache_peer 10.151.8.10 parent 3128 0 name=prod default

cache_peer_access prod allow all
prefer_direct on
--------------------------------------------------------------------------

This configuration works fine, when I remove de default route (to simulate an ASDL issue) squid will use the parent proxy, but I want that squid use always the parent proxy for dstdomain .yacast.net:

--------------------------------------------------------------------------
acl playlist dstdomain .yacast.net

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all

cache_peer 10.151.8.10 parent 3128 0 name=prod default

always_direct deny playlist
cache_peer_access prod allow all
prefer_direct on
---------------------------------------------------------------------------

That don't work, I've tried some others configurations with no success.

Many Thanks,

Sebastien.
Received on Thu Dec 18 2008 - 10:59:09 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 19 2008 - 12:00:02 MST