i'm trying to rewrite all incoming URLs to include the http host header as part of the destination url. example:
incoming: http://site1.com/someurl rewritten: http://originserver.com/site/site1.com/someurl incoming: http://site2.com/otherurl rewritten: http://originserver.com/site/site2.com/someurl the originserver is parsing the original hostname out of the requested url. works great with one hardcoded host: set req.url = regsub(req.url, "^", "/site/site1.com"); i can't get it to use the submitted http host though... set req.url = regsub(req.url, "^", "/site/" + req.http.host); varnish complains about the plus sign. is there some way to do this kind of string concatenation in the replacement? -jsd- _______________________________________________ varnish-misc mailing list [email protected] http://projects.linpro.no/mailman/listinfo/varnish-misc
