Re: [squid-users] accel mode duplicating requests.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 12 Feb 2003 17:55:27 +0100

Try if you use

httpd_accel_host www.foo.bar

I would guess 192.168.1.254 is the IP address of your Squid server. The
log is quite consistent with a Squid talking to himself..

Are you maybe using any redirect_access lines which may prevent the
request from being seen by your redirector?

Also I recomment to use the native log format. Contains more information
on how/when/why Squid sent the request, specifically which IP address
the request was sent to when going DIRECT...

Regards
Henrik

ons 2003-02-12 klockan 16.15 skrev Thiago Madeira de Lima:
> Hi,
>
> I'm having a little trouble (or maybe misconfiguration) with squid.
>
> I'm using squid behind a firewall (nat) as http acelerator for an
> apache.
>
> My conf looks like this :
>
> real ip squid
> internal ip apache
> 200.200.200.200:80 -> redirects using iptables to squid ->
> 192.168.0.6:80 -> call apache -> 192.168.0.7:80
>
>
> I'm using a redir program homemade, that rewrites www.foo.bar to
> isrvwww.foo.bar.
>
> My DNS www.foo.bar points to 200.200.200.200 and isrvwww.foo.bar
> points to 192.168.0.7. Squid is configured to not rewrite the host
> header.
>
>
> My problem is that squid is that squid is duplicating all requests.
>
> When I issue a GET command squid's access log displays :
>
> 192.168.1.254 - - [12/Feb/2003:12:05:20 -0200] "GET http://www.foo.bar/
> HTTP/1.0" 200 4797 TCP_MISS:DIRECT
> 200.158.30.40 - - [12/Feb/2003:12:05:20 -0200] "GET http://www.foo.bar/
> HTTP/1.1" 200 4836 TCP_MISS:DIRECT
>
> Somehow all requests seens to be from 192.168.1.254, but there's NO
> 192.168.1.254 network. My network is 192.168.0.0 .
>
> The line 200.158.30.40 is the real request.
>
> I had to block the Via: header to make squid works, otherwise it
> broke some sites saying that it was in a loop.
>
> Some relevant part of my squid.conf
>
> httpd_accel_port 80
> httpd_accel_host virtual
> httpd_accel_single_host off
> httpd_accel_with_proxy off
> httpd_accel_uses_host_header on
>
> Any tips?
>
> Thanks alot
> Thiago.
>

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Wed Feb 12 2003 - 09:55:40 MST

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