Thanks for doing that search, I'll address each site: https://tenzer.dk/nginx-with-dynamic-upstreams/ This seems to be relevant to DNS names changing: "Closing words Just to make it clear, this doesn't only affect setups using an ELB as an upstream server, but applies to any configuration where you use a changing DNS record as your upstream server in Nginx." Mine aren't, soby jtquinn617 - How to...
https://tenzer.dk/nginx-with-dynamic-upstreams/ For this one, it seems like it discusses how endpoints are cached. The closing words don't follow what I'm trying to do: "Just to make it clear, this doesn't only affect setups using an ELB as an upstream server, but applies to any configuration where you use a changing DNS record as your upstream server in Nginx." http://stackoveby jtquinn617 - How to...
Hm, so I think I can make my question a bit clearer. The configuration below works: #upstream conHTTPS { # server p1.com:7443; # } location /portal { proxy_pass https://p1.com:7443/arcgis; proxy_set_header X-Forwarded-Host nlb.com; } In this case, I'm not using an upstream server and am simply saying send requests to https://nlb.com/portal to https://p1.com:7443/arcgisby jtquinn617 - How to...
That's what I would think! So a configuration like below seems it should work? upstream conHTTPS { server p1.com:7443; server p2.com:7443; } location /portal { rewrite /portal/([^/]+) /arcgis/$1 break; proxy_pass https://conHTTPS; proxy_set_header X-Forwarded-Host nlb.com; } From what the help you've provided and what I've researched, this should work, but I'm nby jtquinn617 - How to...
I guess my question is why does adding a rewrite rule send the request to the nginx machine instead of using the backend servers? The path exists on the backend servers.by jtquinn617 - How to...
Hm, bear with me while I recap the behavior I see. So this is the new config: #user nobody; worker_processes 1; error_log logs/error.log; error_log logs/error.log notice; error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; log_forby jtquinn617 - How to...
Thank you for the response. The problem is that "portal" doesn't exist no the backend servers. The request to http://nlb.com/portal goes to http://p1.com:7080/portal or http://p2.com:7443/portal, which doesn't exist. My attempt at doing: proxy_pass http://conHTTP/arcgis was so that the request comes in as http://nlb.com/portal and it gets translated to http://p1.com:7080/arcgisby jtquinn617 - How to...
Hi, I'm trying to set up NGinx to act as a load balancer to a few endpoints. For example, https://nlb.com/portal will forward requests to https://p1.com:7443/arcgis or https://p2.esri.com:7443/arcgis and http://nlb.com/portal will forward requests to https://p1.esri.com:7080/arcgis or https://p2.esri.com:7080/arcgis. I'm finding that by adding the different location for the URI, the request aby jtquinn617 - How to...