没有使用nginx重写

时间:2016-11-22 01:10:41

标签: python nginx bokeh

我正在尝试运行一个散景服务器,我需要重写nginx路径。 websocket连接在没有重写语句的情况下工作,但没有一个。我收到错误:

  

Bokeh:无法连接到Bokeh服务器错误:无法打开websocket

在我的Chrome控制台上。这是我的样本nginx配置:

location /somepath/myapp {

    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_pass_header Server;
    proxy_set_header Host $http_host;

    rewrite /somepath(.*) $1  break;
    proxy_pass http://127.0.0.1:5006;
}

0 个答案:

没有答案