Varnish 4 rewrite URL transparently
Got it working!
if (req.http.host ~ "^mobile\.example\.com") { set req.http.host = "example.com"; set req.url = regsub(req.url, "^/", "/mobile/"); set req.url = regsub(req.url, "$", "?theme=mobile");}
Got it working!
if (req.http.host ~ "^mobile\.example\.com") { set req.http.host = "example.com"; set req.url = regsub(req.url, "^/", "/mobile/"); set req.url = regsub(req.url, "$", "?theme=mobile");}