Is it possible to simulate this rewrite in vcl?

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


Hi,

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://$1_host.example.com/$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.

Thanks,

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090928/8a63fad1/attachment-0002.html>


More information about the varnish-misc mailing list