Hi is it possible to do an accelerated squid that is on one machine, but pulls pages from virtual hosts on itsself and another host.
Browser <--- Squid <----- Vhost1/2/3 Machine 1
|- Vhost 1/2/3 Machine 2
I always did same machine reverse proxy maybe stupid question.
I know having a single machine squid is easy, but I am not so sure about mixed accelerator settings
This looks promising
# TAG: httpd_accel_single_host on|off
# If you are running Squid as an accelerator and have a single backend
# server set this to on. This causes Squid to forward the request
# to this server, regardles of what any redirectors or Host headers
# Leave this at off if you have multiple backend servers, and use a
# redirector (or host table or private DNS) to map the requests to the
# appropriate backend servers. Note that the mapping needs to be a
# 1-1 mapping between requested and backend (from redirector) domain
# names or caching will fail, as cacing is performed using the
# URL returned from the redirector.
# See also redirect_rewrites_host_header.
Would I just have to say?
and say maybe www.blafasel.com
is ip of squid and in the hosts file I give the virtual servers on the squid machine + the IP and hostname of the other servers virtual servers, like I do with the reverse squid I have for the virtual servers on this domain?
What happens then with
httpd_accel_uses_host_header on #required for virtual hosts
as I want to both accelerate 127.0.0.1 and x.x.x.x