Rewriting urls?

Gaute Amundsen gaute at pht.no
Sat Oct 28 15:47:05 CEST 2006


Hi.

I am looking into using varnish as a front for Zope.
I have only skimmed the docs so far, but I could find nothing obvious at 
least.

In apache what I need to do looks like this:

RewriteRule ^/(.*) 
http://localhost:8080/web/MMBase/http/www.website.no:80/customers/cust_name/MMRoot/$1
[P]

Assignment is not possible to req.url it seems, and none of the examples I 
have found works...


set req.url = "foo" + req.url
rewrite        s/foo$/bar/
rewrite req.url.host "cnn.no" "vg.no"


Regards

Gaute Amundsen





More information about the varnish-misc mailing list