Re: HTTP accelerator questions...

From: Eelco M Glasl <emglasl@dont-contact.us>
Date: Wed, 26 Jan 2000 15:33:42 +0100 (MET)

On Wed, 26 Jan 2000, Emmanuel PIERRE wrote:

> Hi,
>
> I'm having some troubles with squid in accel configuration on
> several
> virtual hosts: how can I avoid port 81 rewriting of URL ?

hi,

try to bind your httpd to port 80 on different ip aliases, if you have
httpd and squid on the same host.

squid -> 192.168.0.1:80
httpd -> 192.168.255.2:80
httpd -> 192.168.255.3:80
httpd -> 192.168.255.4:80

(i took 192.168.255.0/24 so nobody can reach the "real" httpd if
192.168.0.0/24 is my public network). then you can bind 3 ip-based virtual
hosts/httpd's on .2, .3 and .4 and squid on .1, all on port 80 so
redirects to your clients are not broken.

btw, you also need

tcp_incoming_address 192.168.0.1
tcp_outgoing_address 192.168.0.1
udp_incoming_address 192.168.0.1
udp_outgoing_address 192.168.0.1
httpd_accel_host virtual
httpd_accel_port 80

in your squid.conf..

this works for me, hope it works for you too!
emg

-- 
/* Eelco M. Glasl <emglasl@gmx.net> * ICQ#: 52029132 */
Received on Wed Jan 26 2000 - 07:45:02 MST

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