[squid-users] Squid as a non caching reverse proxy on Windows

From: Lyle <webmaster_at_cosmicperl.com>
Date: Sat, 22 Aug 2009 20:17:55 +0100

Hi All,
  I've been having some trouble getting this setup. Initially I was
following a guide that didn't use a reverse proxy:-
http://news.ycombinator.com/item?id=612419
Which worked great locally, but not for any other computers. So I
figured it was missing a reverse proxy. I've managed to get Squid
installed and running on windows after following:-
http://www.ausgamers.com/features/read/2638752

The issue is configuring it to act as a non caching reverse proxy, I
tried reading:-
http://www.visolve.com/squid/whitepapers/reverseproxy.php
But the internal DNS bits at the bottoms aren't clear and left me at a loss.
I also read:-
http://wiki.squid-cache.org/SquidFaq/ReverseProxy
But found it difficult to follow.

Here is what I'm trying to achieve:-

I have one public IP, let's call it 100.100.100.100. In my local network
I have multiple machines. Two of them are 192.168.1.10 and 192.168.1.20
On 192.168.1.10 I have Squid installed bound to 127.0.0.1:80 and both
IIS7 and Apache 2.2 on the same machine. Apache bound to 127.0.0.2:80
and IIS 127.0.0.3:80. 192.168.1.20 has Apache bound to port 80.

Apache is serving test1.domain.com and IIS test2.domain.com, Apache on
192.168.1.20 is serving test3.domain.com.
In my local etc/hosts file I've got:-
test1.domain.com 127.0.0.2
test2.domain.com 127.0.0.3
test3.domain.com 192.168.1.20
Which works great locally.

domain.com is hosted on an external server. I've updated it's DNS
records with a new entry for test1 2 and 3 pointing to 100.100.100.100.
If I ping any of them it get 100.100.100.100

All I need is the squid config to get the incoming requests and forward
to the correct local server based on domain name. But I just can't seem
to get my head around it, or find any straight forwards guides online.

Pls help :(

Lyle
Received on Sat Aug 22 2009 - 19:17:59 MDT

This archive was generated by hypermail 2.2.0 : Sun Aug 23 2009 - 12:00:03 MDT