Re: [squid-users] Can't get http://bay.tvh.com/

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 03 Mar 2012 00:02:30 +1300

On 2/03/2012 4:44 a.m., Alexander Busam wrote:
> Hi!
>
> We use squid as a transparent proxy.
>
> When I try http://bay.tvh.com I just get a blank page.
>
> I also used
>
> acl cache_deny dstdomain .tvh.com
> cache deny dache_deny
>
> without any effect.
>
> Can anybody reproduce this behaviour too?

Yes. The problem appears to be a broken CDN proxy at their end.

When passed requests in HTTP/1.0 format for origin servers.

### squidclient -h bay.tvh.com -j bay.tvh.com -p 80 /tvhbay/tvhbay.html
| more

Request:
   GET /tvhbay/tvhbay.html HTTP/1.0
   Host: bay.tvh.com
   User-Agent: squidclient/3.3
   Connection: close

Response:
   HTTP/1.1 200 OK
   Content-Length: 0
   X-Varnish: 447948572
   ...

It claims the page has no size. Ouch.

But when passed the exact same request using 1.1 it magically appears:

Request:
   GET /tvhbay/tvhbay.html HTTP/1.1
   Host: bay.tvh.com
   User-Agent: squidclient/3.3
   Connection: close

Response:
   HTTP/1.1 200 OK
   Content-Length: 192781
   X-Varnish: 447948866
   ...

>
> How can I fix this ?

You can work around it by upgrading your Squid to version 3.1, which
sends HTTP/1.1 to servers.

And complain to that sites admin. They need to fix their proxy.

Amos
Received on Fri Mar 02 2012 - 11:02:37 MST

This archive was generated by hypermail 2.2.0 : Fri Mar 02 2012 - 12:00:02 MST