Re: [squid-users] Getting direct/never_direct working

From: PONCIN Louis <louis.poncin@dont-contact.us>
Date: Mon, 08 Dec 2003 09:12:08 +0100

Wouldn't it be better to put it this way :

cache_peer PROXY_@ parent PORT 0 no-query

acl local_servers dst IP_NETWORK/MASK
acl local_servers_url url_regex local.servers.com

always_direct allow local_servers_url
always_direct allow local_servers
never_direct allow all

First authorize direct connexion to local servers. Then redirect the
other requests to your proxy parent.

This works fine by me.

    Ciao

This way

> I've got a single upstream non-ICP parent that I want to use for
> everything except for local servers.
>
> I'm doing the following:
>
> cache_peer proxy.upstream.com.au parent 8080 0
> no-query default
> never_direct deny local_servers
> never_direct allow all
> always_direct allow local_servers
> prefer_direct off
> cache_peer_access proxy.upstream.com.au deny local_servers
> acl local_servers dstdomain .localdomain.com.au
> .anotherlocaldomain.com.au
>
>
> But this always uses the upstream proxy, even for local_servers. If I
> remove 'prefer_direct off', it always uses DIRECT even for external
> stuff.
>
> Any ideas what I'm doing wrong?
Received on Mon Dec 08 2003 - 01:16:27 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:06 MST