Re: [squid-users] Still proxying request for a reverse proxy

From: Henrik Nordstrom <[email protected]>
Date: Tue, 03 Oct 2006 00:12:55 +0200

mån 2006-10-02 klockan 11:27 +1000 skrev Eric Blanchi:

> This works a treat except for one thing: the virtualhost block the
> request matches is always the default one (Primary host).
> The Apache access log on BOX A shows the request as:
> GET http://my.Public.com/myfolder HTTP/1.0
>
> I would like to be able to specify which virtualhost to go to as I may
> have a lot of them. The virtualhost would be dependent on which domain
> is in the original request (my.Public.com).

The best is to set up a my.public.com virtualhost on the Apache, but you
can also have Squid rewrite the requested domain either by using a
url_rewriter, or by forcing the domain in the cache_peer directive.

> Forcing Squid to use HTTP/1.1, or send a host: header of some sort?

Squid always sends a Host header.

Regards
Henrik

Received on Mon Oct 02 2006 - 16:13:11 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST