Rewriting urls?

Gaute Amundsen gaute at pht.no
Mon Oct 30 09:13:18 CET 2006


Got a "Warning: could not send message for past 4 hours" on this message, så 
I'm trying again.. 
--

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