Ayman Al-Shorman Ayman Al-Shorman - 1 month ago 20
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

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 !

Thanks

Comments