Blank pages with HTTP/1.0
Fredrik Nygren
fredrik.nygren at gotamedia.se
Tue Mar 11 13:13:02 CET 2008
Thank you for taking time to help.
Yes, I need my cookies. I can't remove them.
I also did an experiment with checking for HTTP/1.0 and then tried to
pass these requests to backend. Unfortunately without success.
It looked something like this:
sub vcl_recv {
if(req.proto == "1.0") {
pass;
}
}
By building my own rpm's from latest trunk I solved the problem.
Regards
<fredrik />
On 11 mar 2008, at 12.10, Kenneth Rørvik wrote:
> Fredrik Nygren wrote:
>
>> I have searched the mailinglist and found this thread which seems
>> to look like our problem but I'm not sure it's the same problem:
>> http://projects.linpro.no/pipermail/varnish-misc/2008-February/001349.html
>> Is there a known problem with the HTTP/1.0 protocol and Varnish?
>
> This looks a lot like a problem I had recently with an eZ-publish
> backend that insists on always setting cookies.
>
> Note that your headers do NOT contain a Content-Length, and this may
> prove to be problematic with HTTP 1.0:
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
>
> My solution was simply to strip cookies in vcl_fetch, this restored
> Content-length:
>
> sub vcl_fetch {
> remove obj.http.Set-Cookie;
> #<snip>
> }
>
> Of course, you may NEED these cookies.... YMMV.
>
> (I am using RH5.1, with 1.1.2-5 rpms)
>
> Kenneth.
>
More information about the varnish-misc
mailing list