Is it possible to simulate this rewrite in vcl?

Rob Ayres quasirob at googlemail.com
Mon Sep 28 11:48:54 UTC 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/vinyl-misc/attachments/20090928/8a63fad1/attachment.html>


More information about the vinyl-misc mailing list