I have my nginx running in 8080 port and it has only my html's and javascript files and I have another webserver in 8000 port which basically is a json rest server. In my nginx.conf file (in 8080 port) i have something like this:
location /xyz {
proxy_pass http://localhost:8000;
}
So when the user browser requests something in /xyz path nginx pass request to my server as expected. Now what I would like to do is when the server returns the http_response redirect that response to another url. Is that possible to do?