Skip to content

Commit

Permalink
Testable mobile redirection VCL snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Karstensen committed Mar 6, 2012
1 parent dcfb8d9 commit d6f1882
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ VCL::
sub vcl_error {
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;
return(deliver);
}
}

... 065-redir-mobile-end

Signaling device type to the backend
Expand Down

0 comments on commit d6f1882

Please sign in to comment.