【问题标题】:Nginx configuration example for sockJS-tornadosockJS-tornado 的 Nginx 配置示例
【发布时间】:2014-02-08 19:24:05
【问题描述】:

我需要 tornado-sockJS Nginx 配置我在网上找不到任何可以帮助我的文档?

无法使用 sockJS 配置 tornado-nginx ..

【问题讨论】:

    标签: websocket tornado sockjs


    【解决方案1】:

    我在我的博客应用程序中使用 SockJS-Tornado。我创建了一个 SockJSRouter in my code here。我的 SockJSConnection 子类 is defined in my code herehere is my nginx.conf。我的 nginx.conf 的相关行如下:

    location /blog/sock_js {
        proxy_pass http://motor_blog;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
    

    【讨论】:

      猜你喜欢
      • 2014-04-17
      • 1970-01-01
      • 2012-09-07
      • 2012-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-04
      • 2016-03-31
      相关资源
      最近更新 更多