Re: stream server name question

2019-08-26 Thread Phillip Odam
Not inside the stream it won't... you'll need the map to at least be inside http and probably server. [RosettaHealth] Phillip Odam Principal Engineer, RosettaHealth rosettahealth.com e: phillip.o...@rosettahealth.com o: 202.350.4343 a: 2 Wisconsin Circle, Chevy Chase, MD [twitte

Re: stream server name question

2019-08-26 Thread Louis Garcia
Does not work. stream { map $host $name { plex.montclaire.lan app1; transmission.montclaire.lan app2; default default; } upstream app1 {

Re: stream server name question

2019-08-26 Thread Phillip Odam
Hi Louis The variable I think you're looking for is $host - http://nginx.org/en/docs/http/ngx_http_core_module.html#variables On 8/26/19 8:55 PM, Louis Garcia wrote: I am able to use $ssl_preread_server_name to get the server name. This is with https requests. Is there a corresponding embedd

stream server name question

2019-08-26 Thread Louis Garcia
I am able to use $ssl_preread_server_name to get the server name. This is with https requests. Is there a corresponding embedded variable for http requests? I would like to setup streams to different backend servers based on http requests. Example below works for https but not http. Thanks. stream

Re: Automatic trailing slash redirect and scheme

2019-08-26 Thread Jean-Daniel FISCHER
Thanks for all the reply, I activate "absolute_redirect off". Le ven. 23 août 2019 à 00:07, Francis Daly a écrit : > On Thu, Aug 22, 2019 at 03:22:38PM +0200, Jean-Daniel FISCHER wrote: > > Hi there, > > > I an trying to set the sheme used in automatic redirect generates by > nginx > > when tra