Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
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-cache
Commits
af29bc7d
Commit
af29bc7d
authored
Feb 23, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add snippet needed for websockets support
Pointed out by nirn on irc.
parent
4f2af500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vcl-example-websockets.rst
doc/sphinx/users-guide/vcl-example-websockets.rst
+8
-1
No files found.
doc/sphinx/users-guide/vcl-example-websockets.rst
View file @
af29bc7d
...
...
@@ -5,10 +5,17 @@ Adding WebSockets support
WebSockets is a technology for creating a bidirectional stream-based
channel over HTTP.
To run WebSockets through Varnish you need to pipe it as follows::
To run WebSockets through Varnish you need to pipe the request and copy
the Upgrade header as follows::
sub vcl_recv {
if (req.http.upgrade ~ "(?i)websocket") {
return (pipe);
}
}
sub vcl_pipe {
if (req.http.upgrade) {
set bereq.http.upgrade = req.http.upgrade;
}
}
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