| commit | 08a73b4aadebd9405ac52ec1f6eef5ca1fe8c11a | [log] [tgz] |
|---|---|---|
| author | Maxim Dounin <mdounin@mdounin.ru> | Mon Feb 18 13:50:52 2013 +0000 |
| committer | Maxim Dounin <mdounin@mdounin.ru> | Mon Feb 18 13:50:52 2013 +0000 |
| tree | 844f6f53431a2c5071b7a799a697b26631946db9 | |
| parent | 35c17ea6f55c202956dccdf11edcdcda432edebe [diff] |
Proxy: support for connection upgrade (101 Switching Protocols).
This allows to proxy WebSockets by using configuration like this:
location /chat/ {
proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Connection upgrade is allowed as long as it was requested by a client
via the Upgrade request header.