# Controlling access to Kibana management tab using Nginx

**URL:** <https://discuss.elastic.co/t/controlling-access-to-kibana-management-tab-using-nginx/87029>\
**Category:** Kibana\
**Created:** [May 24, 2017, 6:48pm UTC](https://discuss.elastic.co/t/controlling-access-to-kibana-management-tab-using-nginx/87029 "2017-05-24T18:48:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![monitoring\_it](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@monitoring\_it](https://discuss.elastic.co/u/monitoring_it)\
**Post date:** [May 24, 2017, 6:48pm UTC](https://discuss.elastic.co/t/controlling-access-to-kibana-management-tab-using-nginx/87029/1 "2017-05-24T18:48:19Z")

</div>

I am using 5.2.1 ELK stack. I am running kibana behind nginx. How do i control access to management tab on kibana. Currently my nginx config only uses location block for accessing / to route to kibana and now i want to have separate authorization to restrict management tab. Is it possible?

snippet of nginx config ==\>

location / {  
# adding ldap authentication  
auth\_ldap "Kibana - Unauthorized access";  
auth\_ldap\_servers kibana\_userrole;  
proxy\_pass [http://localhost:8080](http://localhost:8080);  
}

I was hoping for something like this  
location /app/kibana#/management {  
# adding ldap authentication  
auth\_ldap "Kibana Admin- Unauthorized access";  
auth\_ldap\_servers kibana\_adminrole;  
proxy\_pass [http://localhost:8080](http://localhost:8080);  
}  
But this block doesnt work

---

<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:** [June 21, 2017, 6:48pm UTC](https://discuss.elastic.co/t/controlling-access-to-kibana-management-tab-using-nginx/87029/2 "2017-06-21T18:48:48Z")

</div>

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