A new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team
nginx(1.3.13)ã§WebSocketã®ãããã·ã試ãã¦ã¿ã¾ãã 2013/2/19ã«nginxãæ£å¼ã«WebSocketã«å¯¾å¿ããã¨ã¢ãã¦ã³ã¹ããã£ãã®ã§ã試ãã«ä½¿ã£ã¦ã¿ã¾ããã ãã¦ã³ãã¼ãã»ã¤ã³ã¹ãã¼ã« ããããnginx-1.3.13ããã¦ã³ãã¼ããã¦ãã¦ãã¤ã³ã¹ãã¼ã«ãã¾ãã ã¤ã³ã¹ãã¼ã«ãªãã·ã§ã³ã¯ããã¦ããã©ã«ã㧠$ wget http://nginx.org/download/nginx-1.3.13.tar.gz $ tar xvf nginx-1.3.13.tar.gz $ cd nginx-1.3.13 $ ./configure $ make $ sudo make install è¨å®ãã¡ã¤ã«ã®æ¸ãæã 次ã«nginx.confãæ¸ãæãã¾ããæ§æ㯠ãªãã¼ã¹ãããã·: 192.168.0.8:80 ããã¯ã¨ã³ããµã¼ã: 192.168.0.2:3000
Nginxããªãã¼ã¹ãããã·ã¨ãã¦åããããã®å¾ãã§Socket.IOãåä½ãããæ¹æ³ãnginx_tcp_proxy_moduleã使ç¨ã WebSocketã®ãµã¼ãã¼ãããªãã¼ã¹ãããã·ãµã¼ãã¼ã®å¾ãã§åä½ãããããã«ã¯ããã®ãªãã¼ã¹ãããã·ãµã¼ãã¼ãHTTP 1.1ã®Upgradeãé©åã«æ±ã£ã¦ãããå¿ è¦ãããã¾ãï¼æ¨ã¦ããããªããã¨ï¼ãNginxã¯ãã°ãã°ãªãã¼ã¹ãããã·ã¨ãã¦ä½¿ç¨ããã¾ãããnginxã®proxy_passãã£ã¬ã¯ãã£ãã¯ãã®ã¾ã¾ã§ã¯websocketã®æ¥ç¶ãæå¾ éãã«æ±ã£ã¦ããã¾ãããyaoweibinãããä¸è¬çãªtcpæ¥ç¶ããªãã¼ã¹ãããã·ããããã®ã¢ã¸ã¥ã¼ã«ãnginx_tcp_proxy_moduleãä½æãã¦ãã ãã£ã¦ãã¾ãããã®nginx_tcp_proxy_moduleã使ç¨ãã¦nginxã§websocketãµã¼ãã¼ããªãã¼ã¹ãããã·ã§ããããã«ã
ä»æ´ã ãã©ãnginxããªãããã«ä½¿ã£ã¦socket.ioãåããæ¹æ³ãè¦æ¸ã nginx_tcp_proxy_module If youâre using nginx, you wonât be able to proxy web socket connections using the standard nginx proxy_pass directives. Fortunately, Weibin Yao has developed a tcp proxy module for nginx that allows you to reverse proxy general tcp connections, especially well suited for websockets. http://www.letseehere.com/reverse-proxy-web-sockets
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}