[Varnish] #1308: ESI 400/500 Error handling

Varnish varnish-bugs at varnish-cache.org
Fri May 24 18:02:42 CEST 2013


#1308: ESI 400/500 Error handling
---------------------------------+--------------------
 Reporter:  mukeshk              |       Type:  task
   Status:  new                  |   Priority:  high
Milestone:  Varnish 3.0 dev      |  Component:  build
  Version:  3.0.2                |   Severity:  normal
 Keywords:  ESI Errors handling  |
---------------------------------+--------------------
 I am using ESI with varnish 3.0.2 version. In my case, ESI include URL is
 a sub domain page. I am trying to add some error handling in case of ESI
 include URL is not found or having any error in script.

 I tried many solutions including try, attempt, except, remove but it is
 showing me error page instead of my custom text.

 Here is my ESI code.

 <esi:include src="http://abc.xyz.com/test.php" />

 So if there is any error in test.php, or http://abc.xyz.com domain is not
 accessible then i want to show a custom text message instead of a error
 page like 404, 503 etc.

 Can someone please help me.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1308>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list