Kibana nginx file configuration


(jona) #1

Hi All,

I already have kibana running on port 5610, what I want is to run another directory (orders) on the same port as kibana, but it doesn't seem to work. This is the config I have so far:

server {

   listen xx.yy.zz.ww:5610;
    server_name yy.com
    auth_basic "Authentication";
    auth_basic_user_file /etc/nginx/conf.d/new.htpasswd;

   location ~ {
    proxy_pass http://127.0.0.1:5610;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    }


   location /app/kibana {
   proxy_pass http://127.0.0.1:5610;
   proxy_redirect http://127.0.0.1:5610/app/kibana/ http://yy.com/;
    }

   location /bundles {
   proxy_pass http://127.0.0.1:5610;
    }

   location /elasticsearch {
   proxy_pass http://127.0.0.1:5610;
    }

   location /status {
   proxy_pass http://127.0.0.1:5610;
    }

   location /orders {
   proxy_pass http://127.0.0.1:5610;
    root /var/www/load/orders;
    }
}

(Matt Bargar) #2

It sounds like you might want to read up on our BasePathProxy: https://github.com/elastic/kibana/wiki/KibanaDev.BasePathProxy


(system) #3