URL rewrite

Michael S. Fischer michael at dynamine.net
Mon Mar 10 15:41:32 CET 2008


On Mon, Mar 10, 2008 at 3:57 AM, Gsm Lock <gsm_lock at viaduk.net> wrote:
> I have a few backend servers . Static documents on servers has ugly
> addresses as http://my-next-back.end/111../785643../blabla/.../myXXXX.doc
> (mostly unstructured).
> Some of them has not unique names.
> I need them to be accessible  from frontend as
> http://myfront.end/something/my-new-named.doc
> There are a few thousands of documents... How can I (when I do) configure
> Varnish for this ?

This is easily done with Varnish.  See the gsub() method in vcl(7).
You'll need a working knowledge of regular expressions.

Best regards,

--Michael



More information about the varnish-misc mailing list