# Does elasticsearch support listening on a non root path for the URL?

**URL:** <https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 7, 2023, 9:47pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939 "2023-02-07T21:47:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghettosamson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghettosamson/32/80305_2.png) [@ghettosamson](https://discuss.elastic.co/u/ghettosamson)\
**Post date:** [February 7, 2023, 9:47pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939/1 "2023-02-07T21:47:43Z")

</div>

I have my elasticsearch deployed as a Docker container on AWS, sitting behind an Application Load Balancer. The container is listening on port 9200 as usual, but I'm using path based routing for all my micro-services behind the ALB. So [https://mydomain.com/](https://mydomain.com/) routes to our Web App and [https://mydomain.com/search/](https://mydomain.com/search/) routes to elasticsearch, but when elasticsearch receives the query it thinks I'm trying to query the `search` index. Is there a way to tell elasticsearch that it's base URL is [https://mydomain.com/search/](https://mydomain.com/search/)? Is `network.bind_host` the proper option?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 7, 2023, 10:53pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939/2 "2023-02-07T22:53:43Z")

</div>

`network.bund_host` is for where Elasticsearch will listen to, IP or hostname or interface, not a path.

So this isn't something that Elasticsearch can handle for you and you need to do that in your LB.

---

<div class="post-metadata">

**Author:** ![ghettosamson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghettosamson/32/80305_2.png) [@ghettosamson](https://discuss.elastic.co/u/ghettosamson)\
**Post date:** [February 8, 2023, 2:04pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939/3 "2023-02-08T14:04:37Z")

</div>

Ok, thank you Warkolm

---

<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 8, 2023, 2:05pm UTC](https://discuss.elastic.co/t/does-elasticsearch-support-listening-on-a-non-root-path-for-the-url/324939/4 "2023-03-08T14:05:24Z")

</div>

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