[squid-users] Re: Reverse Proxy - SQUID

From: Henrik Nordstrom <[email protected]>
Date: Thu, 29 Aug 2002 16:00:14 +0200

Cildemac Marques wrote:
> > Where does 10.0.26.54 come from?
>
> Well, this is the squid I installed. I mean I thought that trying to access
> that address it would drive me to the real server.

Problem is that Squid in this case do not know who the real server is.

> > If you want to support requesting content by IP address then you will
> > need to use a redirector to tell Squid the real domain names of each
> > IP address..
>
> Do I need another product in order of doing so or would that be possible to
> implement using Squid only?

No, you just need a small helper application to Squid, telling Squid what to
do with the IP addresses. See the redirect_program directive and the Squid
FAQ chapter on redirectors.

This simple Perl script should do I think:

#!/usr/bin/perl -p
BEGIN { $| = 1; }
s%^http://10.0.26.54%http://www.your.domain% && next;

Regards
Henrik
Received on Thu Aug 29 2002 - 08:00:26 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:53 MST