combining map

2017-03-08 Thread Anoop Alias
Hi, I have 3 maps defined map $request_method $requestnocache { default 0; POST1; } map $query_string $querystringnc { default 1; ""0; } map $http_cookie $mccookienocache { default 0; _mcnc

Re: unbearable reload downtime when introducing a new server block

2017-03-08 Thread he.hailong5
Hi, In my case, I need to add new server block from time to time in nginx. after reloading, it is observed that the newly added server is not available for seconds. is this as expected? how to improve it? BR, Joe___ nginx mailing list nginx@ng

map directive doubt

2017-03-08 Thread Anoop Alias
Hi, Just have a doubt in map directive map $http_user_agent $upstreamname { default desktop; ~(iPhone|Android) mobile; } is correct ? or does the regex need to fully match the variable? map $http_user_agent $upstreamname { default desktop; ~*.*Android.* mobile;

unbearable reload downtime when introducing a new server block

2017-03-08 Thread he.hailong5
Hi, In my case, I need to add new server block from time to time in nginx. after reloading, it is observed that the newly added server is not available for seconds. is this as expected? how to improve it? BR, Joe___ nginx mailing list nginx@ng

virtual host conf.

2017-03-08 Thread Wilmer Arambula
I'm new using nginx, I see the difference in performance, my question is the following I have the following virtual host: example.conf [example.conf] # create new server { listen 80; server_name www.example.com; location / { root /home/example/public_html; f

Re: Nginx Map how to check value if empty

2017-03-08 Thread Francis Daly
On Wed, Mar 08, 2017 at 01:56:04AM -0500, c0nw0nk wrote: Hi there, > The usage of the final output is as easy as this. "$client_ip_output;" > limit_req_zone $client_ip_output zone=one:10m rate=1r/s; #usage example for > the resulting output after all fallback checks and ip whitelist checks etc. >

Re: Nginx Map how to check value if empty

2017-03-08 Thread Francis Daly
On Tue, Mar 07, 2017 at 06:44:05PM -0500, c0nw0nk wrote: Hi there, > I was just looking at the realip module but that module does not seem to > support fallback methods like I demonstrated I was in need of. I'm not convinced that you need anything other than what the realip module provides; but

Re: Reverse Proxy with 500k connections

2017-03-08 Thread Tolga Ceylan
is IP_BIND_ADDRESS_NO_PORT the best solution for OP's case? Unlike the blog post with two backends, OP's case has one backend server. If any of the hash slots exceed the 65K port limit, there's no chance to recover. Despite having enough port capacity, the client will receive an error if the client

mp4 recording using nginx rtmp module

2017-03-08 Thread shashik
We are using wowza streaming engine to record Live TV shows which gives recorded output in the mp4 format. We are evaluating Nginx RTMP module to do same mp4 recording. However it is observed that this module does recording only in the flv format. Is there any way to do direct recording of live str

Re: Reverse proxy problem with an application

2017-03-08 Thread Mik J via nginx
Hello BR,Thank you for your answer and for the hints. I'll investigate further in that direction.Have a nice week Le Mercredi 8 mars 2017 14h03, B.R. via nginx a écrit : This clearly looks like an application problem and not a nginx-related one. nginx does not remove cookies nor, as the

MP4 progressive download needs hint tracks in MP4 file?

2017-03-08 Thread bongtv
I'm wondering if RTP hint tracks in MP4 files are necessary to provide progressive download functionality over my NGINX server configuration. I can't remember where but I read somewhere that these additional tracks support the server by seeking operations (byte-range). Thanks for your feedback, Ha

Re: Reverse proxy problem with an application

2017-03-08 Thread B.R. via nginx
This clearly looks like an application problem and not a nginx-related one. nginx does not remove cookies nor, as the configuration snippet you shared suggest, handles authentication. If you use DNS, make sure all requests are served by the instance of nginx you quote, including redirects which mi

Re: Reverse Proxy with 500k connections

2017-03-08 Thread Maxim Konovalov
On 3/7/17 10:50 PM, larsg wrote: > Hi, > > we are operating native nginx 1.8.1 on RHEL as a reverse proxy. > The nginx routes requests to a backend server that can be reached from the > proxy via a single internal IP address. > We have to support a large number of concurrent websocket connections

Re: Reverse Proxy with 500k connections

2017-03-08 Thread Maxim Konovalov
On 3/8/17 3:57 AM, Tolga Ceylan wrote: > Of course, with split_clients, you are at the mercy of the hashing and > hope that this distribution will spread work > evenly based on incoming client address space and the duration of > these connections, so you might run into > the limits despite having e

Re: keepalive_requests default 100

2017-03-08 Thread B.R. via nginx
I suspect nginx' team chose this value for the very reason it was adapted to the use of Apache (remember that nginx is, since its beginning, largely used as a reverse Web proxy in front of Apache farms). I guess the intent here is to probably mimic Apache behavior by default so adoption of that tec

Re: Nginx Map how to check value if empty

2017-03-08 Thread B.R. via nginx
This kind of logic, as you found out, can be handled in nginx with the help of the proper tools, namely the map module. You are one step away: you can actually program what you require to be feeding the realip module with the HTTP header name you ended up with. Rather than having contiguous maps, h