I have a new version of our app and it needs to be tested before placed everywhere in production.
There is one main machine that currently receives all requests and forwards them to an Apache using proxy_pass. I want to add another server, and forward only some GET requests to it.
Can nginx be configured to do that?
Yes, you need to setup a second upstream in your configuration and then use something to send specific requests there. Like:
Or you can simply go without upstreams and use the short version.
please +1 if it helped :) thanks