# Nginx Mutiple Restriction access to Kibana : Path's syntax

**URL:** <https://discuss.elastic.co/t/nginx-mutiple-restriction-access-to-kibana-paths-syntax/64293>\
**Category:** Kibana\
**Created:** [October 28, 2016, 1:54pm UTC](https://discuss.elastic.co/t/nginx-mutiple-restriction-access-to-kibana-paths-syntax/64293 "2016-10-28T13:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diyal/32/10110_2.png) [@Diyal](https://discuss.elastic.co/u/Diyal)\
**Post date:** [October 28, 2016, 1:54pm UTC](https://discuss.elastic.co/t/nginx-mutiple-restriction-access-to-kibana-paths-syntax/64293/1 "2016-10-28T13:54:12Z")

</div>

Hi,

I am using Nginx ReverProxy for my Kibana Server , it's done :

```auto
 server {
    listen 5606;

    server_name kibana.dma.com;

auth_basic "Restricted Access";
auth_basic_user_file /usr/local/etc/htpasswd.admin;

location / {
    proxy_pass http://localhost:5601;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}

```

"location /" refer to "location /app/kibana"

So, what's the good syntax to prohibit only discover,visualizations,Settings ?

Thanks

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [October 28, 2016, 5:47pm UTC](https://discuss.elastic.co/t/nginx-mutiple-restriction-access-to-kibana-paths-syntax/64293/2 "2016-10-28T17:47:16Z")

</div>

Hi Diyal,

Because Kibana is a single-page app, all routing occurs on the client, so you can't prohibit access to routes via Nginx. To prohibit access to various routes, you'll need to create a customized build by forking the [Kibana repo](http://github.com/elastic/kibana). I'm not sure exactly the best way to remove those routes from Kibana. It will take some experimentation.

Thanks,  
CJ

---

<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, 1:35pm UTC](https://discuss.elastic.co/t/nginx-mutiple-restriction-access-to-kibana-paths-syntax/64293/3 "2017-07-06T13:35:17Z")

</div>


