Is it possible to simulate this rewrite in vcl?

Rob Ayres quasirob at
Mon Sep 28 13:48:54 CEST 2009


I've had to put an instance of apache behind varnish as a redirector as I
can't think of a way of making varnish do it. Can this apache rewrite be
done in vcl?

RewriteRule  ^/(.*)/home/(.*)$  http://$$2 [P]

I've been looking at a mix of using regsub to change parts of the URL and
redirecting using a "error 750" but its becoming more complicated and using
apache is looking like the simplest solution unless I'm missing something
obvious in vcl.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list