# How to Update Kibana Dashboard URL from /app/kibana to /kibana/app/kibana

**URL:** <https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798>\
**Category:** Kibana\
**Created:** [January 10, 2019, 7:04pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798 "2019-01-10T19:04:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayakrishna.rg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakrishna.rg/32/36798_2.png) [@vijayakrishna.rg](https://discuss.elastic.co/u/vijayakrishna.rg)\
**Post date:** [January 10, 2019, 7:04pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/1 "2019-01-10T19:04:31Z")

</div>

Hi,

We are having an issue while accessing Kibana Dashboard through Nginx reverse proxy.

When we add Location block "/" in Nginx.conf for kibana then we are able to access kibana dashboard through "root", in the backend its making all these calls.

/api  
/app  
/bundles  
/elasticsearch  
/kibana  
/plugins  
/ui

Kibana accessible only if we have just "/" in location block but it's not propery way to access kibana dashboard on Nginx proxy as a root.  
so when we added location block seprately for each call, "/api, /app, /bundles, /kibana, /plugins, /ui, /elasticsearch....etc", then again it works, this is going to be big mess adding buch of location blocks in nginx.conf

Example:  
Nginx.conf

```
    location / {

        proxy_http_version 1.1;
        proxy_set_header Connection "";

        set $proxy_pass http://<kibana url>:5601;
        proxy_pass http://<kibana url>:5601;

        proxy_intercept_errors on;
    }

```

Is there a way we can update Dashboard access instead of / to /kibana into kibana configuration so that we can add only one location block /kibana in Nginx.conf so that in the backend it will make all the calls adding /kibana in prefix?

/kibana/api  
/kibana/app/kibana  
/kibana/bundles  
/kibana/elasticsearch  
/kibana/kibana  
/kibana/plugins  
/kibana/ui

Please suggest me what will the recomended way to access kibana Dashboard through Nginx reverse proxy, Thanks.

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [January 10, 2019, 8:15pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/2 "2019-01-10T20:15:22Z")

</div>

You can place this in your kibana.yml:  
`server.basePath: /kibana`  
It will do what you are looking for I think. Then you can configure a /kibana block in your nginx config.

---

<div class="post-metadata">

**Author:** ![vijayakrishna.rg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakrishna.rg/32/36798_2.png) [@vijayakrishna.rg](https://discuss.elastic.co/u/vijayakrishna.rg)\
**Post date:** [January 10, 2019, 8:43pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/3 "2019-01-10T20:43:33Z")

</div>

I have added **server.basePath: /kibana** variable into kibana.yml and restarted kibana service

also added location block in nginx with /kibana, when i hit nginx Proxy URL am not able to access dashboard and i see below log into nginx error.log file.

Below log is generating only when i hit directly nginx proxy URL without /kibana, if i add /kibana along with URL it's not logging anything in Nginx, attached screenshot of inspect section.

_2019/01/10 20:36:52 [error] 17407#17407: \*6711673 "/root/index.html" is forbidden (13: Permission denied)_

 ![kibana_dashboard](https://us1.discourse-cdn.com/elastic/original/3X/1/1/11290070f82cc62da4ec8ff42bb010ff31a6d594.jpeg)

Nginx Location block:

```
    location /kibana {

        
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        set $proxy_pass http://<kibana url>:5601;
        proxy_pass http://<kibana url>::5601;

        proxy_intercept_errors on;
        proxy_redirect off;
    }
```

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [January 10, 2019, 9:05pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/4 "2019-01-10T21:05:34Z")

</div>

Not an nginx expert, but I think your proxy\_pass directive is missing /kibana.

---

<div class="post-metadata">

**Author:** ![vijayakrishna.rg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakrishna.rg/32/36798_2.png) [@vijayakrishna.rg](https://discuss.elastic.co/u/vijayakrishna.rg)\
**Post date:** [January 10, 2019, 9:13pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/5 "2019-01-10T21:13:52Z")

</div>

seems to be working with below location block, thanks for your help.

```
    location /kibana {

        rewrite ^/kibana/?(.*)$ /$1 break;
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        set $proxy_pass http://<kibana url>:5601;
        proxy_pass http://<kibana url>:5601;

        proxy_intercept_errors on;
        proxy_redirect off;
    }
```

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [January 10, 2019, 9:22pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/6 "2019-01-10T21:22:46Z")

</div>

Great, and thanks for posting your solution so someone else can learn from your experience.

---

<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:** [February 7, 2019, 9:22pm UTC](https://discuss.elastic.co/t/how-to-update-kibana-dashboard-url-from-app-kibana-to-kibana-app-kibana/163798/7 "2019-02-07T21:22:50Z")

</div>

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