Which version of Varnish? It seems that you want to change the URL presented to the backend. In that case, you should look into the URI and host name in the backend request instead of the client request, likely in vcl_backend_fetch (version 4.0+).
Best regards, -- Carlos M. Fernández Enterprise Systems Manager Saint Joseph's University W: 610-660-1501 M: 215-316-1193 E: [email protected] > On Jan 30, 2016, at 17:39, Matt . <[email protected]> wrote: > > HI, > > I'm trying to rewrite a domainname what is typed in the addressbar but > keep it overthere that way. > > At the moment my vcl ends up with: > > set req.http.Host = regsub(req.http.X-Redirect-To, {"^([^/]+)/.*"}, "\1"); > set req.url = regsub(req.http.X-Redirect-To, > {"[^/]+(/.*)"}, "\1"); > std.syslog(29, "Redirecting to host "+req.http.Host+"; > URI="+req.url); > return (pass); > > But this really seems to redirect. > > What are my options here ? > > Thanks, > > Matt > > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
