HTTP Status Code 463

2017-10-03 Thread akmanocha
Hi, I am getting a strange error while using nginx as reverse proxy. >From my upstream I get a response like in acess logs - {"time": "2017-10-04T11:51:37+05:30", "remote_addr": "52.76.220.40", "remote_user": "-", "body_bytes_sent": "0", "request_time": "0.002", "status": "463", "request": "GET

duplicate upstream server marked as down

2017-10-03 Thread halfpastjohn
Can i have two, identical, server hostnames in an upstream, with one of them marked as "down"? Like this: resolver 10.0.0.8; upstream backend { server backend.example.com down resolve; server backend.example.com/api/v2/; } The reason being is that i need to route to the second one (with

Re: How to grab a value from a request

2017-10-03 Thread halfpastjohn
Would this work? location ~ ^/users/v2/ { proxy_pass http://app.domain.com/api/$1/v2; } Would $1 resolve as users or does it need to be inside ()? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276652,276664#msg-276664 ___ nginx mailing li

Re: How to grab a value from a request

2017-10-03 Thread Reinis Rozitis
I'm sorry i don't quite follow. How is your example using the map directive? Just for clarity, here is what I'm trying to do. location /[resource]/v2/ { proxy_pass http://app.domain.com/api/[resource]/v2; } Well in general it's something like: location ~ ^/(.*)/v2/ { proxy_pass

Re: How to grab a value from a request

2017-10-03 Thread halfpastjohn
I'm sorry i don't quite follow. How is your example using the map directive? Just for clarity, here is what I'm trying to do. location /[resource]/v2/ { proxy_pass http://app.domain.com/api/[resource]/v2; } In fact, the location bit will be hardcoded with the actual resource, I just need the

Re: Proxy buffering and slow clients related issues

2017-10-03 Thread Maxim Dounin
Hello! On Mon, Oct 02, 2017 at 11:51:33PM -0400, rnmx18 wrote: > Hi, > > We are trying to use NGINX for caching service in low bandwidth, high > latency mobile networks. The service is to stream 10-sec video segments of > different types ranging from 2MB to 50MB. > > NGINX proxy_buffering confi

Re: Info messages in the log: Connection reset by peer) while sending to client

2017-10-03 Thread sachin.she...@gmail.com
Hi, The message in the logs started coming after I removed the "keepalive 60" from the upstream block. The message is connection reset by peer and not client, so i am a bit worried. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276657,276659#msg-276659 __