# Kibana context root?

**URL:** <https://discuss.elastic.co/t/kibana-context-root/57791>\
**Category:** Kibana\
**Created:** [August 11, 2016, 10:06am UTC](https://discuss.elastic.co/t/kibana-context-root/57791 "2016-08-11T10:06:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunilmchaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilmchaudhari/32/9475_2.png) [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)\
**Post date:** [August 11, 2016, 10:06am UTC](https://discuss.elastic.co/t/kibana-context-root/57791/1 "2016-08-11T10:06:47Z")

</div>

Hello,  
We are trying to redirect to Kibana through webseal. I just upgraded to KIbana 4.5.3.

Wehn I hit the url http://:5601 it goes to http://:5601/app/kibana

Can anybody tell me where does it takes this /app/kibana/ from? Webseal is not able to find this context root.  
When we hit direct url by hostname and port, it works.

br,  
Sunil.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [August 11, 2016, 6:06pm UTC](https://discuss.elastic.co/t/kibana-context-root/57791/2 "2016-08-11T18:06:20Z")

</div>

The option you are looking for is server.basePath, which you can set in config/kibana.yml.

> server.basePath: Enables you to specify a path to mount Kibana at if you are running behind a proxy.

---

<div class="post-metadata">

**Author:** ![sunilmchaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilmchaudhari/32/9475_2.png) [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)\
**Post date:** [August 12, 2016, 5:27am UTC](https://discuss.elastic.co/t/kibana-context-root/57791/3 "2016-08-12T05:27:54Z")

</div>

Hello,

My nginx configuration is

```
server{
    listen 8001;
    server_name kibana-test4;

location / {
        proxy_pass http://127.0.0.1:5601/;
        #proxy_redirect http://127.0.0.1:5601/ /kiban4/;
  }
}

```

When I hit url [http://hostName:5601](http://hostName:5601) then ti goes to [http://hostName:5601/app/kibana/](http://hostName:5601/app/kibana/)  
When I hit url [http://hostName:8001](http://hostName:8001) then ti goes to [http://hostName:5601/8001/app/kibana](http://hostName:5601/8001/app/kibana)

Both cases are OK. However I want /central-logging to be the context root in nGinx config.  
I want URL to be [http://hostName:8001/central-logging](http://hostName:8001/central-logging)

br,  
Sunil

---

<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 6, 2017, 1:41pm UTC](https://discuss.elastic.co/t/kibana-context-root/57791/4 "2017-07-06T13:41:17Z")

</div>


