Ubuntu nginx Python linux命令 HTML5 apache 开源 微软 google 程序员 Firefox php Windows centos java wordpress Android mysql linux shell

Nginx Trunk 已支持 WebSocket 反向代理

Nginx trunk 已经出现了对 WebSocket 反向代理的支持

作者:

Maxim Dounin

消息:

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.

位置:trunk/src/http

文件:

修改了8个

延伸阅读

评论

暂无评论

写评论