# How to change elasticsearch rest api context path

**URL:** <https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413>\
**Category:** Elasticsearch\
**Created:** [July 10, 2018, 6:08pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413 "2018-07-10T18:08:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakumarl](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sivakumarl](https://discuss.elastic.co/u/sivakumarl)\
**Post date:** [July 10, 2018, 6:08pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413/1 "2018-07-10T18:08:38Z")

</div>

Hi Team,

```
I am newbie to elastic search, just curious to know how elastic search REST apis are deployed and where can i get the server configuration , is there feasibility to change to rest api context path as below.

```

[http://elastichost:9200/es/api/v1/](http://elastichost:9200/es/api/v1/)

Thanks  
Siva Kumar.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 10, 2018, 8:16pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413/2 "2018-07-10T20:16:54Z")

</div>

You can't in elasticsearch itself.

You need to use a reverse proxy if you really want that.

---

<div class="post-metadata">

**Author:** ![sivakumarl](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sivakumarl](https://discuss.elastic.co/u/sivakumarl)\
**Post date:** [July 10, 2018, 9:17pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413/3 "2018-07-10T21:17:13Z")

</div>

Thank you David for the reply, is there any plugins available to doing this , and also how the REST api are published i mean using npm or jetty or some other ?

Thanks  
Siva Kumar

---

<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:** [August 7, 2018, 9:17pm UTC](https://discuss.elastic.co/t/how-to-change-elasticsearch-rest-api-context-path/139413/4 "2018-08-07T21:17:16Z")

</div>

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