Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-devicedetect
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-devicedetect
Commits
d6f18826
Commit
d6f18826
authored
Mar 06, 2012
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testable mobile redirection VCL snippet
parent
dcfb8d97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
INSTALL.rst
INSTALL.rst
+2
-1
No files found.
INSTALL.rst
View file @
d6f18826
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment