Re: [squid-users] Multiple Host in Accelerator Mode

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 13 Aug 2003 20:13:33 +0200

On Wednesday 13 August 2003 17.04, mmckenzie@unmc.edu wrote:

> For 3.0 do I need to add my accelerated hosts to /etc/hosts ??

No.

> Here's what I have in my config file:
>
> http_port 80 accel vhost defaultsite=info.unmc.edu

Looks good.

>
> in the acl section I have:
>
> acl HTTP proto HTTP
> acl port80 80
> acl domains_server1 dstdomain info.unmc.edu
> cache_peer 192.198.54.13 parent 80 0 no-query originserver
> name=server1 cache_peer_access server1 allow domains_server1
> http_access allow HTTP port80 domains_server1
>
> In the access log it's trying to retrieve itself when I try to hit
> 137.197.155.102 with a browser.

Exacly what does the access.log show?

With the above rules you should get a access deined alternatively a
cannot forward request error as the requested host name
"137.198.155.102" is not info.unmc.edu. If you enable vhost and use a
browser sending Host headers then exacly what is in the host
component of the URL is the vhost the browser is asking to connect
to. If the URL reads an IP address then the IP address is the vhost.
If a host name then the host name is the vhost.

The defaultsite domain name is used if either of the following are
true:

a) You do not specify the vhost directive in the http(s)_port.

b) If users connect with a old HTTP/1.0 client not sending the Host
header.

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Wed Aug 13 2003 - 12:14:41 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:53 MST