[Varnish 4] Custom Error Page from Backend

Andreas Plesner Jacobsen apj at mutt.dk
Fri Oct 10 09:28:38 CEST 2014


On Fri, Oct 10, 2014 at 12:27:30PM +0800, Kelvin Loke wrote:
> 
> And unfortunately I am not allowed to use synthetic() in
> vcl_backend_response. Inside vcl_backend_response I also thought of passing
> a custom header beresp.http.X-CustomError = "YES" to vcl_deliver, but it's
> the same result that I am not allowed to use synthetic() in vcl_deliver.

You can return synth in deliver and go to vcl_synth. 

-- 
Andreas



More information about the varnish-misc mailing list