How do you want Squid to differentiate between the different servers?
a) By the Host header
b) By unique Internet IP addresses
c) Different potions of the URL "file" space
---- Alternative A ----
Suqid.conf:
httpd_accel_host your.primary.domain
httpd_accel_uses_host_header on
acl accelerated_servers dst y.y.y.y z.z.z.z
http_access allow accelerated_servers
/etc/hosts:
y.y.y.y domain.of.server.1
z.z.z.z domain.of.server.2
Squid build options:
./configure --disable-internal-dns ....
--- Alternative B ----
Squid.conf:
httpd_accel_host virtual
/etc/hosts:
as above
Squid build options:
as above
Squid machine setup:
1 virtual IP address for each server, and this IP is officially
registered on the domain name.
Redirector program:
#!/usr/bin/perl -p
s%http://y.y.y.y\b%http://domain.of.server1% && next;
s%http://z.z.z.z\b%http://domain.of.server2% && next;
--- alternative C ---
Use a more advanced redirector. No example given here.
/Henrik
satinder chadha wrote:
>
> Hi Henrik ,
>
> I am facing a problem in configuring squid as reverse proxy . I want one
> single squid to act as a revrese proxy for multiple web servers on different
> machines . Can you tell me how can I setup my squid to act as both
> accelerator and redirector along with the redirecting script required on
> perl .
>
> teh scenario is
> My squid has IP x.x.x.x and the webservers have ip of y.y.y.y , z.z.z.z .
> Can you suggest me the squid.config file and the redirector script .
>
> Regards
> Satinder
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Received on Thu Aug 03 2000 - 15:39:21 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:42 MST