Crimso wrote:
Hi,
I currently use squid on a virtual private server the following way :
www.domains.com -> squid -> my server
The VPS is localized in Italy so my websites seems to be in Italy for
the search engines, although my server is localized in France.
I use : "http_accel_host www.myserverhost.com" directive and it works
perfectly.
For some reasons I'd like to add some domains to my configuration, but
these domains are hosted on another server (I can't change that, it
doesn't depend on me...)
The result should be :
www.domain1.com -> Squid -> server1
www.domain2.com -> Squid -> server2
I really don't see how to do that since the http_accel_host directive
can only be used once...
Is there a way do it ?
Thanks in advance
Look into the httpd_accel_uses_host_header directive. See
http://www.squid-cache.org/mail-archive/squid-users/199909/0309.html and
http://www.squid-cache.org/mail-archive/squid-users/199909/0311.html for
more details. Aside from stating that you should use "httpd_accel_host
virtual" (there is no need), the " Configuring Squid as Reverse Proxy
for Multiple Domains (http accelerator) " section of
http://squid.visolve.com/squid/reverseproxy.htm looks to be a good guide.
Be aware that once you set httpd_accel_uses_host_header to on, you are
opening yourself up to abuse. Be careful with your acls so you don't
become an open proxy.
Chris