<div dir="ltr">Hi all,<div><br></div><div>first some details of my varnish:</div><div><br></div><div><div>varnish-3.0.5-1.el6.x86_64</div><div>varnish-libs-3.0.5-1.el6.x86_64</div></div><div><br></div><div><br></div><div>We are trying to remove the response of 503 status the backend delivers to our varnish.</div>
<div><br></div><div>--snip--</div><div><br></div><div><div> 37 TxHeader b X-Backend-Healthy: yes</div><div> 37 TxHeader b X-Varnish: 1092996393</div><div> 37 RxProtocol b HTTP/1.1</div><div> 37 RxStatus b 503</div>
<div> 37 RxResponse b Service Unavailable</div><div> 37 RxHeader b Server: cloudflare-nginx</div><div> 37 RxHeader b Date: Mon, 21 Jul 2014 14:18:51 GMT</div><div> 37 RxHeader b Content-Type: text/html</div>
<div> 37 RxHeader b Transfer-Encoding: chunked</div><div> 37 RxHeader b Connection: keep-alive</div><div> 37 RxHeader b Set-Cookie: __</div><div> 37 RxHeader b Cache-Control: no-cache</div><div> 37 RxHeader b CF-Cache-Status: MISS</div>
<div> 37 RxHeader b Vary: Accept-Encoding</div><div> 37 RxHeader b CF-RAY:</div><div> 37 Fetch_Body b 3(chunked) cls 0 mklen 1</div><div> 37 Length b 459</div><div> 37 BackendReuse b host_1</div>
</div><div><br></div><div>--snip--</div><div><br></div><div>These Backend includes ESI to our site and if the backend (not sick at this time) throw a 503 to our varnish we see the nginx error message at our page:</div><div>
<br></div><div>Error 503 .. Service Unavailable ...and so on</div><div><br></div><div>Now we tried to fix this using in vcl_error these method without success:</div><div><br></div><div><div>if ( (obj.status >= 500 || obj.status <= 505) && (req.url ~ "^/appserver/") ) {</div>
<div> set obj.http.Cache-Control = "public, max-age=10";</div><div> set obj.status = 200;</div><div> set obj.response = "OK";</div><div> return (deliver);</div><div> }</div></div><div>
<br></div><div>we are aiming to serve a blank 200 status so that the error disappear on our site where the ESI is included.</div><div><br></div><div>how could we fix that issue? is there any way not using synthetic while serving blank html code? i dont like this "workaround".</div>
<div><br></div><div>thanks a lot for any help.</div><div><br></div><div>best regards</div><div>tobias</div></div>