[Varnish] #77: URL rewrite

Stig Sandbeck Mathisen ssm at linpro.no
Fri Jun 15 13:55:11 CEST 2007


To elaborate on this, I'd like to be able to use req.http.* variables
within the rewrite result:

For zope, I could use a rewrite like:

{{{
 ^/(.*) =>  "http://localhost:9673/VirtualHostBase/http/" \
             . req.http.host \
             . ":80/my_plone_sites/fnord.no/$1"
}}}

Strings between "VirtualHostBase" and "VirtualHostRoot" are used by
zope's "Virtual Host Monster" object to generate content and links.
In this case, I could use one rewrite rule for many sites.

-- 
Stig Sandbeck Mathisen, Linpro



More information about the varnish-bugs mailing list