[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] always go through parent proxy when go to some domain?
From:       "Patrick Hsieh\(Pahud\)" <pahudnet () gmail ! com>
Date:       2007-09-27 9:00:19
Message-ID: 359737a80709270200j7b38fa06p529c016dc91c64ca () mail ! gmail ! com
[Download RAW message or body]

it works! you are the genius! thank you!


On 9/27/07, Amos Jeffries <squid3@treenet.co.nz> wrote:
> > thanks for your quick reply but my target is:
> >
> > 1. when go to some domains e.g. *.google.com, go through a specific
> > cache_peer without direct connection(since there's an openvpn between
> > local squid to that remote cache_peer)
> > 2. other domains, direct connect or go through default cache_peer with
> > plain text transfering
> >
> > proxy-only makes my squid not cache in local and always fetch from
> > cache_peer but how does it manage to make it always go through
> > cache_peer when visiting *.google.com while others  just direct link?
> >
> > idea?
> >
>
> Try something like below;
> you will need to adapt for your domains and peer actual locations
>
>   acl requirePeer dstdomain .google.com
>   cache_peer peer.example.com parent 80 0 no-query no-netdb-exchange
> name=peer1
>   cache_peer_access peer1 requirePeer
>   never_direct allow requirePeer
>
> Amos
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic