ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

x-accel-redirect + websocket


  • To: nginx-ru@xxxxxxxxx
  • Subject: x-accel-redirect + websocket
  • From: Serge Rasnikov <s.rasnikov@xxxxxxxxx>
  • Date: Fri, 14 Mar 2014 20:37:14 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=kvB8gWx1wpCnAAbnGI8glqsM7b/HRG3I0yG/tUpmJdg=; b=0egKLU5Pkw1tPX8Zpl2hfPH4ksgft/uK/krGKOu4i91AI9KD9SNIGSSTj4RWiiSJt9 u9Ziy/zWXQ10qSF/vQ+037TpBkzXBWagwGY4SlibSkzVgQvbivLXrJM5KqQkMepsnPRE scdNNCbAUt93LiWui6M03SFwBgraOMfAjlfZfCV4J02FSubuaXUSeZr5mk4pSBgydPkI 5/13UJvjJZweycFa1gQNdz8yAdEgUufNdO9r8iQhgs4DVvqzj+/6li/KjHT/RginFtr7 yw0IDpL9AsSvrchv0MQBuIqr07o9vo/fzP89pCzldW2gIlAnV8yTNaxH8LqGyiAwTrBp ijkA==


Работает. Вопрос в том, имеет ли такая конструкция право на существование?


    location ~ ^/sio(.*)$ {
        internal;

        proxy_read_timeout 950s;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://127.0.0.1:25000/socket.io$1;
    }

    location ~ ^/socket.io(.*) {
        proxy_pass http://127.0.0.1:25001/sio$1;
    }


--
С уважением,
Сергей Расников

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.