Re: [squid-users] Failed to select source for... Other websites

From: Henrik Nordstrom <[email protected]>
Date: Wed, 16 Mar 2005 22:19:52 +0100 (CET)

On Wed, 16 Mar 2005, Allen Schmidt wrote:

>> it is recommended to set up http_access to only allow reuqests to your
>> published servers using the dstdomain acl. This will stop these
>> requests proper, avoiding the "failed to select source" clutter in your
>> cache.log.
>
> Can anyone be more specific on how to accomplish this?

acl mysites dstdomain www.domain1.com www.domain2.com ...
http_access allow mysites

where the default config says you should add rules allowing access from
your clients.

>> Most likely your forwarding policies or redirector does not account for
>> requests by IP.
>
> And examples of how to correct this??

If you use a redirector, then add rules to this redirector telling what
should be done when the user requests by IP.

If you use /etc/hosts for forwarding to the backend servers then you need
to add a redirector to rewrite the IP based requests into something
meaningful.

If you do cache_peer based forwarding then set up cache_peer_access to
route the IPs to the correct backend web server.

Regards
Henrik
Received on Wed Mar 16 2005 - 14:19:54 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:02 MST