2014-02-08 20 views

回答

2

我用SockJS基旋風在我的博客應用。我創建了一個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"; 
} 
+0

完美答案:) – omgbbqhax