ok. got it.
this is what you need for a fully functional proxy / load balancer answering on 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>