Is it possible to access the original request URL in the esi request?

姚伟斌 nbubingo at gmail.com
Thu Aug 30 05:45:37 CEST 2012


Hi,

I have a question, Is it possible to access the original request URL
in the esi request? We want to access the original URL's argument in
the ESI request.

We have tried to add the custom HTTP header in VCL like this:

sub vcl_recv {
    set req.http.X-foo=req.url;
}

But the req.url is replaced by the ESI URL in the ESI request, not the
original main request.

Thanks.



More information about the varnish-misc mailing list