Re: always_direct

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 17 Nov 1998 00:33:37 +0100

Yuriy Kouznetsov wrote:
>
> acl loc dstdomain xxxxxxx
> acl loc1 dstdomain xxxxxxxx
> always_direct allow loc loc1
>
> But request blocked by parent proxy?!? always_direct direct to orginal
> server or direct to parent proxy?

access lines ANDs acl lines together. You probably want to write either

acl loc dstdomain xxxxxx yyyyyy
always_direct allow loc

or

acl loc dstdomain xxxxxx
acl loc dstdomain yyyyyy
always_direct allow loc
always_direct allow loc1

always_direct is forcing Squid to go direct to the origin server.

never_direct is forcing Squid to always go throught a parent (or sibling
hit).

If neither of always_direct or never_direct is allowed then the normal
cache_peer selection algorithms is used.

The intended use of always_direct is if you have local servers to which
Squid always should go direct.

The intended use of never_direct is if you are inside a firewall where
all requests has to go throught the firewall.

---
Henrik Nordstrom
Spare time Squid hacker
Received on Mon Nov 16 1998 - 16:28:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:06 MST