Commit af29bc7d authored by Federico G. Schwindt's avatar Federico G. Schwindt

Re-add snippet needed for websockets support

Pointed out by nirn on irc.
parent 4f2af500
......@@ -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;
}
}
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