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.
Received on Wed Feb 12 2003 - 07:15:31 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:13:20 MST