# How to configure nginx on windows?

**URL:** <https://discuss.elastic.co/t/how-to-configure-nginx-on-windows/75275>\
**Category:** Elasticsearch\
**Created:** [February 16, 2017, 4:43am UTC](https://discuss.elastic.co/t/how-to-configure-nginx-on-windows/75275 "2017-02-16T04:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syndy1989](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@syndy1989](https://discuss.elastic.co/u/syndy1989)\
**Post date:** [February 16, 2017, 4:43am UTC](https://discuss.elastic.co/t/how-to-configure-nginx-on-windows/75275/1 "2017-02-16T04:43:15Z")

</div>

Nginx: How do i forward http request to another port?

I have three ES nodes.

Node 1(primary ):[http://localhost:9200](http://localhost:9200)

Node 2:[http://localhost:9201](http://localhost:9201)

Node 3:[http://localhost:9202](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

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [February 17, 2017, 8:42am UTC](https://discuss.elastic.co/t/how-to-configure-nginx-on-windows/75275/2 "2017-02-17T08:42:42Z")

</div>

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 [https://www.elastic.co/guide/en/elasticsearch/client/index.html](https://www.elastic.co/guide/en/elasticsearch/client/index.html) for a list of client libraries.

Daniel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 17, 2017, 8:42am UTC](https://discuss.elastic.co/t/how-to-configure-nginx-on-windows/75275/3 "2017-03-17T08:42:45Z")

</div>

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