Permalink
Browse files

Testable mobile redirection VCL snippet

  • Loading branch information...
1 parent dcfb8d9 commit d6f18826d910801aac9681fdef4b84675e5a9f12 Lasse Karstensen committed Mar 6, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 INSTALL.rst
View
@@ -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

0 comments on commit d6f1882

Please sign in to comment.