Welcome! Log In Create A New Profile

Advanced

Websockets and ws url

Posted by zedth2 
Websockets and ws url
July 04, 2013 02:44PM
Does nginx support the websocket url format? if I try to do "proxy_redirect ws://arcweb.cyber/websocket http://websock;" nginx complains. What I need to happen is all traffic comes in on port 80 but if it's the ws, websocket, then it gets passed on to my application running on a different port. I've tried it with both url with HTTP but when I change the websocket code in JavaScript that complains that the url is in the wrong format for websockets.
Re: Websockets and ws url
July 18, 2013 08:25PM
I'm not quite sure why you need to do a proxy_redirect for websockets. My understanding is that proxy_redirect modifies the proxied Location/Refresh headers, which don't really relate to a websockets connection (after it's established).
(well that's my understanding of websockets)

Perhaps this page may help you if you haven't seen it already?
http://nginx.org/en/docs/http/websocket.html
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready