I am trying to run Kibana behind nginx, but it does not seem to work.
Kibana is latest version (5.3.1) on ubuntu 16.04
This is the nginx configuration,
location ~ ^/kibana/.* {
proxy_pass http://localhost:5601;
rewrite ^/kibana/(.*) /$1 break;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log /var/log/nginx/kibana_access.log custom;
error_log /var/log/nginx/kibana_error.log debug;
}
This is the from Kibana logs
{"type":"response","@timestamp":"2017-04-28T08:39:02Z","tags":[],"pid":21373,"method":"get","statusCode":200,"req":{"url":"/","method":"get","headers":{"host":"vogo-alpha.cloudapp.net","x-forwarded-for":"106.51.65.208","connection":"close","user-agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","upgrade-insecure-requests":"1"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":200,"responseTime":20,"contentLength":9},"message":"GET / 200 20ms - 9.0B"}
What is wrong with the configuration here ?