# Reverse proxy kibana in node express?

**URL:** <https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152>\
**Category:** Kibana\
**Created:** [October 28, 2015, 1:45pm UTC](https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152 "2015-10-28T13:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dansantner](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dansantner](https://discuss.elastic.co/u/dansantner)\
**Post date:** [October 28, 2015, 1:45pm UTC](https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152/1 "2015-10-28T13:45:00Z")

</div>

I'm simply trying to reverse proxy kibana through a node express app.

I'm using /kibana/ as the route to get to kibana.

It's hanging on the post to elastcisearch/\_mget

Any help is appreciated!

Here's the proxy code. I even separated the get and post just to see what's going on.

```
var httpProxy = require('http-proxy');

var proxyget = httpProxy.createProxyServer({target:'http://192.168.99.100:5601'});
var proxypost = httpProxy.createProxyServer({target:'http://192.168.99.100:5601'});

app.get('/kibana/*', function(req, res) {
  console.log(req.method + ' : ' + req.url);
  req.url = req.url.replace('/kibana','');
  proxyget.web(req, res, { target: 'http://192.168.99.100:5601'});
});

app.post('/kibana/*', function(req, res) {
  console.log(req.method + ' : ' + req.url);
  req.url = req.url.replace('/kibana','');
  proxypost.web(req, res, { target: 'http://192.168.99.100:5601'});
});

```

And the call that is timing out is:

```
POST : /kibana/elasticsearch/_mget?timeout=0&ignore_unavailable=true&preference=1446038576531
```

---

<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:** [October 28, 2015, 2:13pm UTC](https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152/2 "2015-10-28T14:13:31Z")

</div>

For me the same thing happened when in Apache config POST was not allowed.Please check if you need to allow POST request explicitly in your config.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [October 31, 2015, 3:01pm UTC](https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152/3 "2015-10-31T15:01:40Z")

</div>

Looks like it's a bug that will be fixed in Kibana 4.2.1: [https://github.com/elastic/kibana/issues/5230](https://github.com/elastic/kibana/issues/5230)

---

<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:10pm UTC](https://discuss.elastic.co/t/reverse-proxy-kibana-in-node-express/33152/4 "2017-07-06T14:10:14Z")

</div>


