I want to pass proxy pass for kibana but it's not working

server base path is : server.basePath: "/kibana"

and here is nginx.conf file

http {
upstream elasticsearch {
server 127.0.0.1:9200;
keepalive 15;
}

server {
listen 80;
location /kibana {
proxy_pass http://elasticsearch;
proxy_http_version 1.1;
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
}
}

upstream kibana {
server 127.0.0.1:5601;
keepalive 15;
}
server {
listen 8080;

location / {
  proxy_pass http://kibana;
  proxy_http_version 1.1;
  proxy_set_header Connection "Keep-Alive";
  proxy_set_header Proxy-Connection "Keep-Alive";
}

}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.