How to configure nginx on windows?

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

Hi @syndy1989,

I am not sure what you mean by "the page"? Are you connecting to Elasticsearch with a web browser? There is no need to do what you are asking because that's something the client libraries usually handle for you under the hood. See for a list of client libraries.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.