# How to proxy Kibana?

**URL:** <https://discuss.elastic.co/t/how-to-proxy-kibana/39738>\
**Category:** Kibana\
**Created:** [January 21, 2016, 8:21am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738 "2016-01-21T08:21:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AthenaInterns](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AthenaInterns](https://discuss.elastic.co/u/AthenaInterns)\
**Post date:** [January 21, 2016, 8:21am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/1 "2016-01-21T08:21:43Z")

</div>

Hello. I'm having some(a lot of) difficulties, trying to setup a reverse proxy for Kibana.

The general idea is that we want to set up a reverse proxy so select customers have access to Kibana. E.g. when customer A goes to [kibana.company.com/customera](http://kibana.company.com/customera) he is automatically forwarded to Kibana and has access to logistics about their data. We have multiple customers we need to proxy, so eventually we will set up ldap or AD, to help us handle this.

So far i've tried both Apache2 and Nginx, but i've run into problems using both of them. I'm currently working on Apache, with a very simple configuration.

[http://pastebin.com/1gt5KLyP](http://pastebin.com/1gt5KLyP)

When i go to localhost/kibana/ i'm forwarded to localhost/app/kibana, but i get a URL not found message.

As far as NginX goes, i run into a problem where i forward to Kibana, but it get's indefinitely stuck in a loading loop. ("Kibana is loading blablabla... good stuff will be cached"), but i never actually shows the dashboard, no matter which configuration i tried, i could never get the dashboard to show. This is a sample config, but it's changed a lot during testing.

[http://pastebin.com/PP4Fu1Cs](http://pastebin.com/PP4Fu1Cs)

Am i going about it the right way or is their a simpler way to do what i'm trying to do.

---

<div class="post-metadata">

**Author:** ![AthenaInterns](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AthenaInterns](https://discuss.elastic.co/u/AthenaInterns)\
**Post date:** [January 21, 2016, 8:41am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/2 "2016-01-21T08:41:29Z")

</div>

I've managed to achieve the same results with Apache2 now. Infinite loading loop.

---

<div class="post-metadata">

**Author:** ![ashishmahajan](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@ashishmahajan](https://discuss.elastic.co/u/ashishmahajan)\
**Post date:** [February 17, 2016, 10:00pm UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/3 "2016-02-17T22:00:22Z")

</div>

Hi,

Having the same problem myself, Kibana is just stuck at loading when proxied by Apache. Works just fine when i hit the Kibana instance directly.

Anyone figure this out yet? Any clue?

---

<div class="post-metadata">

**Author:** ![Diego\_Corradini](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@Diego\_Corradini](https://discuss.elastic.co/u/Diego_Corradini)\
**Post date:** [February 18, 2016, 2:51pm UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/4 "2016-02-18T14:51:17Z")

</div>

Same problem too.. any solution so far?

---

<div class="post-metadata">

**Author:** ![AthenaInterns](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AthenaInterns](https://discuss.elastic.co/u/AthenaInterns)\
**Post date:** [February 23, 2016, 7:04am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/5 "2016-02-23T07:04:59Z")

</div>

Sorry for the late reply, i've been sick with the flu for the last week.

We've successfully managed to create a proxy environment around our kibana solution. We're using Nginx though. I'm not sure whether this is a bug or not, but in order to keep the proxy loop from happening it seems you have to proxy using location "/" and not e.g. "/kibana". I'm not sure why, but it seems like it's this that causes the loop, at least that is how we fixed it.

Here's a sample vhost config file, that i can confirm works in my test environment using Centos and Debian machines. [http://pastebin.com/9LVfE6UF](http://pastebin.com/9LVfE6UF)

---

<div class="post-metadata">

**Author:** ![abhijitdeka11](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhijitdeka11](https://discuss.elastic.co/u/abhijitdeka11)\
**Post date:** [February 23, 2016, 8:13am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/6 "2016-02-23T08:13:29Z")

</div>

Hi,  
Which version of Kibana you are using?  
I am also having the same problem.  
Thanks  
Abhijit

---

<div class="post-metadata">

**Author:** ![AthenaInterns](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AthenaInterns](https://discuss.elastic.co/u/AthenaInterns)\
**Post date:** [February 23, 2016, 8:30am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/7 "2016-02-23T08:30:18Z")

</div>

I'm currently proxying with 4.3

---

<div class="post-metadata">

**Author:** ![abhijitdeka11](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhijitdeka11](https://discuss.elastic.co/u/abhijitdeka11)\
**Post date:** [February 23, 2016, 8:40am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/8 "2016-02-23T08:40:08Z")

</div>

Did you use the server.basepath property on the Kibana.yml config file or only nginx configurations.  
Actually I was trying both and it is not working for me.

---

<div class="post-metadata">

**Author:** ![AthenaInterns](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@AthenaInterns](https://discuss.elastic.co/u/AthenaInterns)\
**Post date:** [February 23, 2016, 8:55am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/9 "2016-02-23T08:55:27Z")

</div>

I only used nginx configurations, try posting your configs and i'll have a look at them to check if they look like mine.

---

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [February 23, 2016, 11:00pm UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/10 "2016-02-23T23:00:47Z")

</div>

guys, it's actually very easy.

everything is explained in this post: [[4.3.0] how to configure your nginx balancer and apache reverse proxy](https://discuss.elastic.co/t/4-3-0-how-to-configure-your-nginx-balancer-and-apache-reverse-proxy/37351)

---

<div class="post-metadata">

**Author:** ![abhijitdeka11](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@abhijitdeka11](https://discuss.elastic.co/u/abhijitdeka11)\
**Post date:** [March 7, 2016, 11:54am UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/11 "2016-03-07T11:54:54Z")

</div>

Hi,

This is the nginx config I am using.[Link](http://pastebin.com/155fyuRq)  
I am not getting the relative URL back anymore .All subsequent URLs like common.js etc are now absolute to the sever root.

---

<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, 2:00pm UTC](https://discuss.elastic.co/t/how-to-proxy-kibana/39738/12 "2017-07-06T14:00:01Z")

</div>


