Mailing List Archive

Rewriting urls?
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
Rewriting urls? [ In reply to ]
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
Rewriting urls? [ In reply to ]
In message <200610281547.05719.gaute at pht.no>, Gaute Amundsen writes:

>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.

We are not as far with the VCL functions as I had hoped, and amongst
the things you can't do yet is rewrites of that order.

Stay tuned, it will come.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.