Re: [squid-users] Multiple domains and multiple backend servers : use of httpd_accel ?
lör 2006-06-17 klockan 17:54 +0530 skrev Visolve Squid: > If you are using the reverse proxy for more than one web server, then we > must use the word virtual as the httpd_accel_host. Not at all. Please read the squid.conf comments about what this does, do not blindly assume anything from it's name. "httpd_accel_host virtual" is only meaningful in very specific conditions, and frankly I doubt many reverse proxy setups have those conditions or are willing to submit to the restrictions involved in using this... The main setup where using this is meaningful is transparently intercepting proxies where you have may have old clients NOT sending Host headers. Normally a reverse proxy should use "httpd_accel_host your.main.site". Or if there is a single server "httpd_accel_host backend.web.server" may be used to avoid having to teach Squid the real IP mapping of the site but I recommend the first even when there is a single server.. (makes the Host header sent to the backend match what is published on the Internet). Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] Multiple domains and multiple backend servers : use of httpd_accel ?
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... Hello Crimso, If you are using the reverse proxy for more than one web server, then we must use the word virtual as the httpd_accel_host. For more details: http://squid.visolve.com/squid/reverseproxy.htm -- Thanks, Visolve Squid Team, http://squid.visolve.com
Re: [squid-users] Multiple domains and multiple backend servers : use of httpd_accel ?
fre 2006-06-16 klockan 18:10 +0200 skrev Crimso: > 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...) I would recommend you to look into the upcoming 2.6 release. These configurations have been made a bit simpler there. For 2.5 set "httpd_accel_uses_host_header on", and map the domains to their real servers in /etc/hosts (to override DNS). Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] Multiple domains and multiple backend servers : use of httpd_accel ?
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
[squid-users] Multiple domains and multiple backend servers : use of httpd_accel ?
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 -- _ (_) _ ___ ___ / ___)/ ___) |\ /___)/ _ \ ( (___| | | | | | |___ | |_| | \)_| |_|_|_|_(___/ \___/