# Kibana 5 behind reverse proxy

**URL:** <https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573>\
**Category:** Kibana\
**Created:** [February 18, 2017, 6:25am UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573 "2017-02-18T06:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)\
**Post date:** [February 18, 2017, 6:25am UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/1 "2017-02-18T06:25:02Z")

</div>

Is there a documentation out there describing the configuration of kibana 5 behind reverse proxy.

--  
Niraj

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [February 20, 2017, 4:05pm UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/2 "2017-02-20T16:05:23Z")

</div>

Hi @niraj_kumar,

there is a [blog post](https://www.elastic.co/blog/playing-http-tricks-nginx) talking about deploying Elasticsearch behind nginx. Most of it would also be applicable for Kibana (with different ports, obviously). In addition, the following [Kibana settings](https://www.elastic.co/guide/en/kibana/current/settings.html) might need adjusting - depending on the specific environment:

- `server.host`
- `server.port`
- `server.basePath`

If you have also deployed the X-Pack, these settings could be of interest:

- `xpack.reporting.kibanaServer.hostname`
- `xpack.reporting.kibanaServer.port`

Some other users have shared information about their reverse proxy setups preciously on this forum:

- [https://discuss.elastic.co/t/can-someone-share-nginx-config-for-reverse-proxying-kibana4-4-4-5](https://discuss.elastic.co/t/can-someone-share-nginx-config-for-reverse-proxying-kibana4-4-4-5)
- [Reverse proxy Kibana](https://discuss.elastic.co/t/reverse-proxy-kibana/43647/)

---

<div class="post-metadata">

**Author:** ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)\
**Post date:** [February 21, 2017, 2:19am UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/3 "2017-02-21T02:19:09Z")

</div>

I managed to make this thing up. Here are my Proxy config below.

```
#Kibana 5 reverse proxies.

```

ProxyPass /app/kibana [http://example.com:5601/app/kibana](http://example.com:5601/app/kibana)  
ProxyPassReverse /app/kibana [http://example.com:5601/app/kibana](http://example.com:5601/app/kibana)

ProxyPass /bundles [http://example.com:5601/bundles](http://example.com:5601/bundles)  
ProxyPassReverse /bundles [http://example.com:5601/bundles](http://example.com:5601/bundles)

ProxyPass /elasticsearch/ [http://example.com:9200](http://example.com:9200)  
ProxyPassReverse /elasticsearch/ [http://3v218.cv.hp.com:9200](http://3v218.cv.hp.com:9200)

ProxyPass /status [http://example.com:5601/status](http://example.com:5601/status)  
ProxyPassReverse /status [http://example.com](http://example.com):/status

ProxyPass /api/status [http://example.com:5601/api/status](http://example.com:5601/api/status)  
ProxyPassReverse /api/status [http://example.com:5601/api/status](http://example.com:5601/api/status)

ProxyPass /api/console [http://example.com:5601/api/console](http://example.com:5601/api/console)  
ProxyPassReverse /api/console [http://example.com:5601/api/console](http://example.com:5601/api/console)

ProxyPass /plugins/kibana/ [http://example.com:5601/plugins/kibana/](http://example.com:5601/plugins/kibana/)  
ProxyPassReverse /plugins/kibana/ [http://example.com:5601/plugins/kibana/](http://example.com:5601/plugins/kibana/)

ProxyPass /plugins/timelion/ [http://example.com:5601/plugins/timelion/](http://example.com:5601/plugins/timelion/)  
ProxyPassReverse /plugins/timelion/ [http://example.com:5601/plugins/timelion/](http://example.com:5601/plugins/timelion/)

ProxyPass /app/sense [http://example.com:5601/app/sense](http://example.com:5601/app/sense)  
ProxyPassReverse /app/sense [http://example.com:5601/app/sense](http://example.com:5601/app/sense)

ProxyPass /ui/fonts/open\_sans/ [http://example.com:5601/ui/fonts/open\_sans/](http://example.com:5601/ui/fonts/open_sans/)  
ProxyPassReverse /ui/fonts/open\_sans/ [http://example.com:5601/ui/fonts/open\_sans/](http://example.com:5601/ui/fonts/open_sans/)

ProxyPass /es\_admin/ [http://example.com:5601/es\_admin/](http://example.com:5601/es_admin/)  
ProxyPassReverse /es\_admin/ [http://example.com:5601/es\_admin/](http://example.com:5601/es_admin/)

---

<div class="post-metadata">

**Author:** ![indriesergiu](https://avatars.discourse-cdn.com/v4/letter/i/e0b2c6/32.png) [@indriesergiu](https://discuss.elastic.co/u/indriesergiu)\
**Post date:** [March 20, 2017, 11:06pm UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/4 "2017-03-20T23:06:24Z")

</div>

Hi Kumar,

I noticed that Timelion was still not loading correctly. I've added the missing entries

```
<VirtualHost *:8190>
    Servername kibana
	
	DirectoryIndex /app/kibana
    
	ProxyPass /app/kibana http://localhost:5601/app/kibana
	ProxyPassReverse /app/kibana http://localhost:5601/app/kibana

	ProxyPass /app/timelion http://localhost:5601/app/timelion
	ProxyPassReverse /app/timelion http://localhost:5601/app/timelion

	ProxyPass /bundles http://localhost:5601/bundles
	ProxyPassReverse /bundles http://localhost:5601/bundles

	ProxyPass /elasticsearch/ http://localhost:9200
	ProxyPassReverse /elasticsearch/ http://localhost:9200

	ProxyPass /status http://localhost:5601/status
	ProxyPassReverse /status http://localhost:/status

	ProxyPass /api/status http://localhost:5601/api/status
	ProxyPassReverse /api/status http://localhost:5601/api/status

	ProxyPass /api/console http://localhost:5601/api/console
	ProxyPassReverse /api/console http://localhost:5601/api/console

	ProxyPass /api/timelion/run http://localhost:5601/api/timelion/run
	ProxyPassReverse /api/timelion/run http://localhost:5601/api/timelion/run

	ProxyPass /api/timelion/functions http://localhost:5601/api/timelion/functions
	ProxyPassReverse /api/timelion/functions http://localhost:5601/api/timelion/functions

	ProxyPass /plugins/kibana/ http://localhost:5601/plugins/kibana/
	ProxyPassReverse /plugins/kibana/ http://localhost:5601/plugins/kibana/

	ProxyPass /plugins/timelion/ http://localhost:5601/plugins/timelion/
	ProxyPassReverse /plugins/timelion/ http://localhost:5601/plugins/timelion/

	ProxyPass /app/sense http://localhost:5601/app/sense
	ProxyPassReverse /app/sense http://localhost:5601/app/sense

	ProxyPass /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/
	ProxyPassReverse /ui/fonts/open_sans/ http://localhost:5601/ui/fonts/open_sans/

	ProxyPass /es_admin/ http://localhost:5601/es_admin/
	ProxyPassReverse /es_admin/ http://localhost:5601/es_admin/
	
	ErrorLog "logs/kibana-error.log"
	
</VirtualHost>
```

---

<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:** [April 17, 2017, 11:06pm UTC](https://discuss.elastic.co/t/kibana-5-behind-reverse-proxy/75573/5 "2017-04-17T23:06:28Z")

</div>

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