Context root for Kibana URL

We are securing Kibana behind nGinx. All setting are done and it asks for id password when we hit URL http://host.ip.address:5601.

What we want is, there should be context root like "/kibana" Or /central_logging.

Where to set this? I kibana4.conf under /etc/nginx/conf.d OR somewhere in kibana.yml?
Below is my Kibana4.conf under nginx conf direcotry.

    listen     8001;
    server_name  kibana-test1;

    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        auth_basic "Restricted";
        auth_basic_user_file /etc/nginx/conf.d/kibana.htpasswd;
        proxy_read_timeout 90;


        #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;

Please guide on this.


This is an Nginx question, but I suspect adjusting location / to e.g. location /kibana will do. Obviously, if you want to serve other data from the root of the URL namespace you'll have to add a new replacement location / section.