"Large" Binary Files triggering 503 Response

Douglas R Taber drtaber at northcarolina.edu
Fri Apr 13 16:08:45 CEST 2012


On Apr 11, 2012, at 7:26 AM, Esbjörn Eriksson wrote:

> I got this exact same error. Solved it by doing a check on req.url for the troublesome url and piping the response.
> 
> if (req.url ~ "/troublesome/") {
>  return (pipe);
> }
> 
> --
> Esbjörn Eriksson | http://bazooka.se | 08 31 70 00
> 
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

We found that our developers were manually setting a value for the content-length header that was causing varnish to 503 on us. They were calculating in code based on the file system size causing it to be incorrect. Removing that manually set header solved the issue.


More information about the varnish-misc mailing list