ESI processing external URL

Jaap van Arragon j.vanarragon at lukkien.com
Mon Aug 29 16:27:24 CEST 2011


I've got it working now.

I've just included the url example.com in my vcl_receive.

Thanks for the help.

Regards
Jaap van Arragon


On 8/29/11 4:00 PM, "Roberto O. Fernández Crisial"
<roberto.fernandezcrisial at gmail.com> wrote:

> Have you tried to create a particular backend for "example.com" hostname and
> process request as ESI forwarded to that backend?
> 
> I use (no ESI handle) a subdomain for images and send the requeste to original
> webserver (outside Varnish environment
> 
> Roberto O. Fernández Crisial
> @rofc
> -----Original Message-----
> From: Andreas Plesner Jacobsen <apj at mutt.dk>
> Sender: varnish-misc-bounces at varnish-cache.org
> Date: Mon, 29 Aug 2011 14:34:51
> To: <varnish-misc at varnish-cache.org>
> Subject: Re: ESI processing external URL
> 
> On Mon, Aug 29, 2011 at 02:17:07PM +0200, Jaap van Arragon wrote:
>> 
>> <esi:include src="http://example.com/test/folder/page.htm?header=true"
>> onerror="continue"/>
>> 
>> The vcl is simply:
>> 
>> sub vcl_fetch {
>>      esi;
>> }
>> 
>> Can somebody tell me why it is looking inside his own varnish and not just
>> include the esi url?
> 
> ESI is handled like any other request, and thus goes to the backend specified
> by your vcl.
> 
> You need to add VCL to handle that particular hostname.






More information about the varnish-misc mailing list