ПРОЕКТЫ 


  АРХИВ 


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 <747500@xxxxxxxxx>
  • Date: Fri, 14 Mar 2014 20:53:45 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=lxACCEaSWAYmnmEPs61S6GVdSA8tHTGGJSHNrPJjRWc=; b=iy79ToOSJA5VueDkNMP5Sll4xhFfOOL5ia+q6BWiQIOX283Y+Iguar1VIJJg8HMiPm SpKZ8GsHe1mr4PwHkfB1j/MmGqPYLA8GLbW8AnN3Zckkr9AAEOaCPSJ1bA5YGNfEREI8 lomGuq7I5aBJGuS0ALVYis0cR4C5c/2dz1l5JKnCvAkaX3AZG31OWEMNpLa5jWp1nm6o AGIzMw+bO6gcLO47zCyWPvbBpbsuG6Ke+ll9MDeszMqbcEKy50cN/Jft6Ogmrc6d1u5N wn54PPclW8rlvKR75GKG44gj257gqeH1+aphF7j0kKRKH9F07ioNUlCI5siEAfHW4Drm Bd+w==


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


    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.