# Elasticsearch IIS on a subpath

**URL:** <https://discuss.elastic.co/t/elasticsearch-iis-on-a-subpath/178650>\
**Category:** Elasticsearch\
**Created:** [April 26, 2019, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-iis-on-a-subpath/178650 "2019-04-26T13:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenzo\_De\_Francesco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lorenzo_de_francesco/32/41766_2.png) [@Lorenzo\_De\_Francesco](https://discuss.elastic.co/u/Lorenzo_De_Francesco)\
**Post date:** [April 26, 2019, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-iis-on-a-subpath/178650/1 "2019-04-26T13:23:13Z")

</div>

Hi guys!  
I have an issue involving elasticsearch and the Node client ([https://github.com/elastic/elasticsearch-js-legacy](https://github.com/elastic/elasticsearch-js-legacy)).

I binded on IIS with a revese proxy the path `http://host/elasticsearch` with `http://localhost:9200` so that i can access ES from `https://www.myapp.com/elasticsearch`

But when I do the GET request [https://www.myapp.com/elasticsearch/\_nodes/\_all/](https://www.myapp.com/elasticsearch/_nodes/_all/) it reurns:

```auto
{
    "nodes": {
      "Lwxd-nyQTo-2aUcp1KgKpA": {
        "name": "caboo-1",
        "host": "localhost",
        "version": "7.0.0",
        "http": {
          "publish_address": "IPADRESS:9200"
        }
      }
    }
  }

```

This is not good for the client because it pushes data at IPADRESS:9200, I want `publish_address='https://www.myapp.com/elasticsearch'` is it possible?

Thanks!

---

<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:** [May 24, 2019, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-iis-on-a-subpath/178650/2 "2019-05-24T13:23:22Z")

</div>

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