Poul-Henning Kamp wrote:
> In message <[EMAIL PROTECTED]>, Jon Drukman writes:
>> i'm trying to rewrite all incoming URLs to include the http host header 
>> as part of the destination url.  example:
>>
>>  set req.url = regsub(req.url, "^", "/site/" + req.http.host);
> 
> You can't do it directly right now, but this may be a feasible
> workaround:
> 
>       set req.http.foobar = "/site/"
>       set req.http.foo = regsub(req.url, "^", req.http.foobar);
>       unset req.http.foobar;
> 

Thanks for the ideas.  I ended up just moving the original host request 
into a different header and modifying the origin server to look for that 
header instead of looking in the URL.

-jsd-

_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to