<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div>I have configured Varnish backend probes + grace mode. Works great.<div class=""><br class=""></div><div class="">One thing I’d like to address with this setup (this is Magento website, but this “issue” applies to other website types) is more relevant error pages.</div><div class=""><br class=""></div><div class="">If a constant PHP error occurs in the backend and there is no cache - we see Backend fetch failed.</div><div class="">In some cases (e.g. when adding a store view to Magento website, and not yet configured CMS page, Magento returns 404 which of course fails the probes) - we see Backend fetch failed as well.</div><div class="">Finally, if Magento sends too long header and we haven’t upped some Varnish settings, etc. (misconfiguration issue) - we see Backend fetch failed.</div><div class=""><br class=""></div><div class="">While I’m working with Varnish setups quite often, it always takes time to explain to the clients that the Varnish is not to blame and ideally there would be a way to deliver different Varnish error page for these 3 cases:</div><div class=""><br class=""></div><div class="">* 500 error-ed backend</div><div class="">* 404-ed backend</div><div class="">* actual problem talking to the backend (HTTP etc.)</div><div class=""><br class=""></div><div class="">Is there any way to achieve this with grace mode on? I assume this requires at very least being able to get information from last probe...<br class=""><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Best Regards,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Danila</div></div>
</div>

<br class=""></div></div></body></html>