# Setting up elasticsearch on win 2008 production server

**URL:** <https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548>\
**Category:** Elasticsearch\
**Created:** [May 9, 2016, 12:39pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548 "2016-05-09T12:39:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousata](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yousata](https://discuss.elastic.co/u/yousata)\
**Post date:** [May 9, 2016, 12:39pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/1 "2016-05-09T12:39:53Z")

</div>

I need to configure elasticsearch so that it is accessible with sub domain, e.g. [test.web.com](http://test.web.com) over https and http.  
I can access it with ip of the server and appending it with port :9200 but the requirement is i want to access it without port number like [test.web.com](http://test.web.com)

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 9, 2016, 12:51pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/2 "2016-05-09T12:51:58Z")

</div>

Configure your favorite web server to exact as a reverse proxy, e.g. listen to requests on port 80 and/or 443 and forward them to localhost:9200.

---

<div class="post-metadata">

**Author:** ![yousata](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yousata](https://discuss.elastic.co/u/yousata)\
**Post date:** [May 9, 2016, 1:10pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/3 "2016-05-09T13:10:42Z")

</div>

Thanks Magnus for the response!!!

Initially we want to try elasticsearch on one server and the sub domain is configured on the same server with other websites. Do you have any hint how to set reverse proxy. Is it something possible with elasticsearch YML file.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 9, 2016, 7:28pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/4 "2016-05-09T19:28:53Z")

</div>

> Do you have any hint how to set reverse proxy.

Check the documentation of your webserver of choice (e.g. IIS).

> Is it something possible with elasticsearch YML file.

No.

---

<div class="post-metadata">

**Author:** ![yousata](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yousata](https://discuss.elastic.co/u/yousata)\
**Post date:** [May 10, 2016, 7:44am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/5 "2016-05-10T07:44:30Z")

</div>

Thanks!

I set up the IIS with URL rewrite functionality by following the steps here

[http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis](http://weblogs.asp.net/owscott/creating-a-reverse-proxy-with-url-rewrite-for-iis)

But trying to resolve issue that we get

502 - Web server received an invalid response while acting as a gateway or or proxy server during Dashboard execution in Web

---

<div class="post-metadata">

**Author:** ![yousata](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yousata](https://discuss.elastic.co/u/yousata)\
**Post date:** [May 10, 2016, 7:45am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/6 "2016-05-10T07:45:46Z")

</div>

It's actually following exact error

502 - Web server received an invalid response while acting as a gateway or proxy server.  
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

---

<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:** [July 5, 2017, 10:52pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-on-win-2008-production-server/49548/7 "2017-07-05T22:52:52Z")

</div>


