Proxying based on protocol (e.g. "ws"/"wss")?

Daniel Griscom griscom at
Thu May 9 18:45:59 UTC 2013

... bump?


At 9:32 AM -0400 5/8/13, Daniel Griscom wrote:
>I'm an nginx newbie, and need use use it as a front end for a 
>website that also handles websocket connections. I have the 
>configuration set up so that requests to a specific URI match a 
>location section, which then proxies the request to the websocket 
>back end server, and it all works. (Very cool.)
>However, I was wondering if, rather than detecting requests to a 
>specific location, I could proxy all "ws://" or "wss:// requests, 
>independent of the URI being requested.
>Is there a way to proxy all requests with a given protocol?
>Daniel T. Griscom             griscom at
>Suitable Systems    
>1 Centre Street, Suite 204    (781) 665-0053
>Wakefield, MA  01880-2400
>nginx mailing list
>nginx at

Daniel T. Griscom             griscom at
Suitable Systems    
1 Centre Street, Suite 204    (781) 665-0053
Wakefield, MA  01880-2400

More information about the nginx mailing list