Ayman Al-Shorman Ayman Al-Shorman - 1 year ago 129
Linux Question

How to configure Kibana 4 and elasticsearch behind nginx?

I have kibana 4 and elasticsearch running on the same server.

I need to access kibana through a domain but when I try I keep getting file not found.

I just create location /kibana in nginx and the proxy_pass is the ip:port of kibana.

Anyone had this?

Answer Source

I fixed it by the following:

location /kibana4/ {
proxy_pass http://host:5601/;
proxy_redirect http://host:5601/ /kibana4/;

I had to use proxy_redirect to have the response back !


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download