Passing Backend App Errors to End Users

Andreas Plesner apj at mutt.dk
Thu Jul 21 10:03:56 CEST 2016


On Thu, Jul 21, 2016 at 12:55:47AM +0000, Kelvin Loke wrote:
> 
> My goal is to make Varnish to show Backend's error body, not Varnish's
> generic error body, which I have a difficult time to figure it out. I

Again: Varnish will do that by default. You don't have to do anything.

You return synth in vcl_deliver. Don't do that if you don't want a synthetic
response.

> -   VCL_call       DELIVER
> -   RespUnset      Via: 1.1 varnish-v4
> -   RespUnset      Server: nginx/1.6.2
> -   RespUnset      X-Varnish: 34174473
> -   VCL_return     synth

-- 
Andreas



More information about the varnish-misc mailing list