Unknown variable 'beresp.url'
Erik Weber
twiztar at gmail.com
Fri Jun 17 11:32:29 CEST 2011
On Fri, Jun 17, 2011 at 11:29 AM, Tobias Hensel
<hensel.tobias at googlemail.com> wrote:
> Hello,
>
> I try doing my first steps with varnish.
> I use debian and installed varnish from your repos.
> varnishd -V says varnishd (varnish-2.1.5 SVN )
>
> I try to rebuild some of your examples.
> On http://www.varnish-cache.org/docs/2.1/tutorial/vcl.html
>
> Example 2 - manipulating beresp says:
>
> sub vcl_fetch {
> if (beresp.url ~ "\.(png|gif|jpg)$") {
You wanna use req.url, e.g.
sub vcl_fetch {
if (req.url ~ ....)
--
Erik
More information about the varnish-misc
mailing list