Commit d6f18826 authored by Lasse Karstensen's avatar Lasse Karstensen

Testable mobile redirection VCL snippet

parent dcfb8d97
...@@ -57,11 +57,12 @@ VCL:: ...@@ -57,11 +57,12 @@ VCL::
sub vcl_error { sub vcl_error {
if (obj.status == 750) { if (obj.status == 750) {
set obj.http.Location = "http://m.example.com/"; set obj.http.Location = "http://m.example.com" + req.url;
set obj.status = 302; set obj.status = 302;
return(deliver); return(deliver);
} }
} }
... 065-redir-mobile-end ... 065-redir-mobile-end
Signaling device type to the backend Signaling device type to the backend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment