Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

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

$
0
0
The scheme is available as... $scheme

On Thu, 2013-05-09 at 14:45 -0400, Daniel Griscom wrote:
> ... bump?
>
> (thanks,
> Dan)
>
>
> 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?
> >
> >
> >Thanks,
> >Dan
> >
> >--
> >Daniel T. Griscom griscom@suitable.com
> >Suitable Systems http://www.suitable.com/
> >1 Centre Street, Suite 204 (781) 665-0053
> >Wakefield, MA 01880-2400
> >
> >_______________________________________________
> >nginx mailing list
> >nginx@nginx.org
> >http://mailman.nginx.org/mailman/listinfo/nginx
>
>

--
Steve Holdoway BSc(Hons) MNZCS <steve@greengecko.co.nz>
http://www.greengecko.co.nz
MSN: steve@greengecko.co.nz
Skype: sholdowa

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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>