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
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
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
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
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
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
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
__