Nginx: How do i forward http request to another port?
I have three ES nodes.
Node 1(primary ):http://localhost:9200
Node 2:http://localhost:9201
Node 3:http://localhost:9202
what i want to do is, if primary node fails ES will make node 2 as primary but i want the page should redirect automatically to localhost:9201 and how would i do that using nginx on windows or is there any other way to do that. Thanks in advance