Re: One answer about Squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 25 Oct 1998 18:04:59 +0100

akorud@polynet.lviv.ua wrote:

> This is in my squid.conf and it does not help.

Are you using 2.1.PRE1? It's broken.

Use 2.0, or apply a small 2.1.PRE1 patch available from my Squid page:
http://hem.passagen.se/hno/squid/

> 4. I want that squid catch request and redirect them to different
> IP in my internal network (192.168.3.1 and 192.168.3.2) or different
> ports on one IP (192.168.3.1:80 and 192.168.3.1:80) - which method
> is better I don't know.

Using different IP addresses is preferred. It may be possible to use
different ports but it requires extra attention to server generated
redirects and CGI generated URLs.

It is also possible to use purely virtual (Host: based) servers.

> Is it possible to implement?

Yes.

1. One or more backend servers
2. One (or more) frontend Squid server configured with "httpd_accel
primary_backend_server", "httpd_accel_uses_host_header on" and
"http_port 80".
3a) IP addresses of your backend servers (including virtual servers)
listed in /etc/hosts on the Squid frontend server, and the OS configured
to use /etc/hosts before DNS.
3b) A redirector that rewrites the URLs to the IP addresses of your
backend servers, and Squid configured with
"redirect_rewrites_host_header off" (patch currently required).

(choose one of 3a and 3b).

---
Henrik Nordstrom
Spare time Squid hacker
Received on Sun Oct 25 1998 - 10:01:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:46 MST