# \[ 4.3.0 \] how to configure your nginx balancer and apache reverse proxy

**URL:** <https://discuss.elastic.co/t/4-3-0-how-to-configure-your-nginx-balancer-and-apache-reverse-proxy/37351>\
**Category:** Kibana\
**Created:** [December 16, 2015, 12:09pm UTC](https://discuss.elastic.co/t/4-3-0-how-to-configure-your-nginx-balancer-and-apache-reverse-proxy/37351 "2015-12-16T12:09:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 17, 2015, 12:50pm UTC](https://discuss.elastic.co/t/4-3-0-how-to-configure-your-nginx-balancer-and-apache-reverse-proxy/37351/2 "2015-12-17T12:50:34Z")

</div>

ok. got it.

this is what you need for a fully functional proxy / load balancer answering on [http://my-balancer/kibana/](http://my-balancer/kibana/)

#Balancer

**nginx**

`/etc/nginx/conf.d/elastic-80.server.conf`

```
upstream web {

    server elk-node-01;
    server elk-node-02;
    server elk-node-03;

    keepalive 5;
}

server {

    listen 80;

    location / {

        proxy_pass http://web;
        proxy_http_version 1.1;
        proxy_set_header Connection "Keep-Alive";
        proxy_set_header Proxy-Connection "Keep-Alive";
    }

    access_log /var/log/nginx/access-80.log;
    error_log /var/log/nginx/error-80.log;
}

```

#Nodes

**kibana**

`/var/www/kibana/config/kibana.yml`

```
# If you are running kibana behind a proxy, and want to mount it at a path,
# specify that path here. The basePath can't end in a slash.
server.basePath: "/kibana"

```

**apache**

`/etc/apache2/sites-available/15-default.conf`

```
<Location /kibana/>
    ProxyPass http://localhost:5601/
    ProxyPassReverse http://localhost:5601/
</Location>
```

---

_[View the full topic](https://discuss.elastic.co/t/4-3-0-how-to-configure-your-nginx-balancer-and-apache-reverse-proxy/37351)._
