Ok, so you are going for alternative B, one IP for each accelerated
domain.
--- squid.conf ---
http_port 10.15.1.251:80
http_port 10.15.1.252:80
httpd_accel_host virtual
acl all src 0.0.0.0/0
acl accelerated_servers 10.15.1.11 10.15.1.22
http_access allow accelerated_servers
redirect_program /usr/local/squid/bin/accel_redirector.pl
cache_dir ....
--- accel_redirector.pl ---
#!/usr/bin/perl -p
BEGIN { $|=1; }
s%http://10.15.1.251\b%http://docs.mydomain.com% && next;
s%http://10.15.1.252\b%http://solve.mydomain.com% && next;
Ah.. sorry. I apparently forgot the $|=1 statement in my original post.
This is required for proper redirector operation.
--- Internet DNS ---
docs.mydomain.com. IN A 10.15.1.251
solve.mydomain.com. IN A 10.15.1.252
--- Local DNS ---
docs.mydomain.com. IN A 10.15.1.11
solve.mydomain.com. IN A 10.15.1.22
Local DNS can be avoided by using --disable-internal-dns and adding the
hosts to /etc/hosts. The requirement is that Squid should be able to
look up the real destination server using the domain name.
You could also write the redirector to redirect to the backend IP
addresses directly, and make sure the backend servers know their domain
name (not sure this is possible using MS IIS for example)
-- Henrik Nordstrom Squid hacker satinder chadha wrote: > > Hi Henrik , > > Sorry for troubling you again . I just wanted to clarify a few things > > The squid has an IP of 10.15.1.16 and on that I have created two virtual IPs > of 10.15.1.251 for domain docs.mydomain.com and ip of 10.15.1.252 for domain > solve.mydomain.com > The actual Ips of these web servers are > > 1. docs.mydomain.com 10.15.1.11 > 2. solve.mydomain.com 10.15.1.22 > > Can you please give me the exact configuration based on the above mentioned > setup . > > I am using an internal DNS for resolution . Is it possible or I have to use > /etc/hosts . > > Regards > SatinderReceived on Fri Aug 04 2000 - 12:08:39 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:43 MST