Re: Please, help with always_direct/never_direct

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 04 Mar 2000 11:12:49 +0100

Miquel van Smoorenburg wrote:

> This should keep requests for local domains local, right ?
>
> acl local-servers urlpath_regex cistron.nl mbit.nl cistron.net
> always_direct allow local-servers
>
> Well, it still asks the parent for URLs containing these domains ..

Well.. urlpath_regex mathes only the part AFTER the host name.. so your
acl would match something like
  http://www.example.com/jumbit.lnid/index.html
or
  http://jumpgate.example.com/goto/www.cistron.nl
but NOT
  http://www.cistron.nl/

What you want is
acl local-servers dstdomain .cistron.nl
acl local-servers dstdomain .mbit.nl
acl local-servers dstdomain .cistron.net

--
Henrik Nordstrom
Squid hacker
Received on Sat Mar 04 2000 - 16:30:27 MST

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