# Kibana reverse proxy

**URL:** <https://discuss.elastic.co/t/kibana-reverse-proxy/258856>\
**Category:** Kibana\
**Created:** [December 16, 2020, 11:58am UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856 "2020-12-16T11:58:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [December 16, 2020, 11:58am UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/1 "2020-12-16T11:58:53Z")

</div>

Hi,  
I am implementing apache reverse proxy on kibana.  
I want to make url `http:url:5601/app/kibana` to `http:url/app/kibana`.

Thanks

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [December 16, 2020, 12:32pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/2 "2020-12-16T12:32:33Z")

</div>

Hi @vikram_singh,

What have you tried so far? What does your config look like? Are you seeing any specific errors that we can help you troubleshoot?

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [December 16, 2020, 1:11pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/3 "2020-12-16T13:11:00Z")

</div>

HI Larry,  
I am using Apache reverse proxy on kibana by below settings:

`ProxyPass "/app/kibana/.*" "https://MYURL:5601/" retry=0`  
`ProxyPassReverse "/app/kibana/.*" "https://MYURL:5601/"`  
`RewriteCond "%{HTTP_REFERER}" "https://MYURL/app/kibana/.*"`  
`RewriteRule "^/(.+)" "https://MYURL:5601/$1"`  
After setting it redirect to apache server, it is okay.  
After that it redirect to `"https://MYURL/app/kibana"`  
On this url, it is showing 404 error.

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [December 16, 2020, 1:47pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/4 "2020-12-16T13:47:36Z")

</div>

What does your `kibana.yml` look like?

Is this 404 error coming from Kibana, or from Apache?

What URL are you exposing Kibana on from the end-user's perspective?  
Is it something like `https://my-apache-server/` or `https://my-apache-server/some/path/`?

I'm asking because I'm confused about the rewrite rules. I'm not sure those are strictly necessary, but it's hard to tell without more information.

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [December 16, 2020, 2:26pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/5 "2020-12-16T14:26:30Z")

</div>

I develop an application. it is using Apache server on `https://MYURL`.  
kibana is running on `https://MYURL:5601/` url.  
I build a sso login on `https://MYURL` by apache. But `https://MYURL:5601/` is running on different server, so it not coming under sso login.  
I am trying by reverse proxy, a user try to open url `https://MYURL/app/kibana` it will be redirect to apache sso login security , after login, user come back to `https://MYURL/app/kibana` and serve `https://MYURL:5601/app/kibana` content.

---

<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:** [January 13, 2021, 2:26pm UTC](https://discuss.elastic.co/t/kibana-reverse-proxy/258856/6 "2021-01-13T14:26:44Z")

</div>

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