regsub in error response

Chris Hecker checker at
Fri Sep 10 19:12:59 CEST 2010

I'd like to do a 301 from to, but preserving the whole url, 
but I can't figure out how to do it.  This doesn't work to send it to 

  error 751 regsub(req.url,"","");

The regsub isn't allowed there.  Can I stuff it in a header that I can 
get in vcl_error?

This is CentOS:
Name       : varnish
Arch       : i386
Version    : 2.0.6
Release    : 2.el5


More information about the varnish-misc mailing list