Thanks for your help. That is clear.
So the nameservers for webservername1.com (1.2.3.4) and webservername2.com (1.2.3.5) would point to the external interface of the machine that squid is on? These two webservers would then take local addresses like 192.168.1.4 and 192.168.1.5?
Any caveats with this system?
Regards, JIM
Tom Le wrote:
hi
you need a squid-redirector. I use the following and it does the job fine for me, but whether it caches anything, I have not looked yet.
----snip----- #!/usr/bin/perl $|=1; #Flush any buffer asap. #Read Standard input, one request at a time from squid. while (<>) {
@X = split; $url = $X[0]; $move_302 = 0;
[EMAIL PROTECTED]://<your external.webservername1.com>/@http://<your internal.webserver-X.com>/@;
[EMAIL PROTECTED]://<your external.webservername2.com>/@http://<your internal.webserverY.com>/@;
# you can add as many as you want
print;
} ----snap-----
And then; you need to the following in your squid.conf
--- squid.conf-----
# TAG: redirect_program
# Specify the location of the executable for the URL redirector.
# Since they can perform almost any function there isn't one included.
# See the FAQ (section 15) for information on how to write one.
# By default, a redirector is not used.
#
#Default:
# none
redirect_program /etc/squid/squid-redirector.pl
redirect_children 10
------------------------------------------------------
Hope this help. Sometimes things do not look too obvious.
Jim Nachlin wrote:
Hi,
Sorry for so basic a question, but I'm trying to set up squid as an httpd accelerator for several httpds running on different IP addresses. It should be possible, using some combination of
httpd_accel_host virtual httpd_accel_single_host off
etc. I can't find any documentation on how to actually do this, or on how the packets will be redirected. If my servers are now 1.2.3.4 and 1.2.3.5, will the machine hosting squid now have those addresses, or if not, how will the requests from clients go to squid.
Obviously, I'm confused. Feel free to RTFM me, but just let me know what M to RTF. Thanks in advance for your help.
Jim
