# Kibana nginx file configuration

**URL:** https://discuss.elastic.co/t/kibana-nginx-file-configuration/42837
**Category:** Kibana
**Created:** [February 26, 2016, 10:00am UTC](https://discuss.elastic.co/t/kibana-nginx-file-configuration/42837 "2016-02-26T10:00:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![el.qa](https://avatars.discourse-cdn.com/v4/letter/e/e0b2c6/32.png) [@el.qa](https://discuss.elastic.co/u/el.qa)
#### Post date: [February 26, 2016, 10:00am UTC](https://discuss.elastic.co/t/kibana-nginx-file-configuration/42837/1 "2016-02-26T10:00:38Z")

</div>

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;
    }
}
```

---

<div class="post-metadata">

### Author: ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)
#### Post date: [March 1, 2016, 12:58am UTC](https://discuss.elastic.co/t/kibana-nginx-file-configuration/42837/2 "2016-03-01T00:58:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:00pm UTC](https://discuss.elastic.co/t/kibana-nginx-file-configuration/42837/3 "2017-07-06T14:00:47Z")

</div>


