# Nginx authentication not working for cabana

**URL:** <https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449>\
**Category:** Kibana\
**Created:** [July 31, 2018, 10:50pm UTC](https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449 "2018-07-31T22:50:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna2/32/20893_2.png) [@Krishna2](https://discuss.elastic.co/u/Krishna2)\
**Post date:** [July 31, 2018, 10:50pm UTC](https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449/1 "2018-07-31T22:50:34Z")

</div>

hi  
I am trying to setup nginx authentication for kibana and my nginx is running.My kibana.yml as below. It throws error like this.  
--------kibana.yml  
server {  
server.host "localhost"  
server.port 5601  
server.name "Kibana Server"  
elasticsearch.url "[http://localhost:9200](http://localhost:9200)"  
kibana.index ".kibana"  
logging.verbose true

```
location ~ ^/.* {
   satisfy any;
   allow 127.0.0.0/8;
   deny all;
   auth_basic "Kibana user required"
   auth_basic_user_file /usr/local/Cellar/nginx/1.15.2/config/kibana.passwd
   proxy_pass http://localhost:9205
   proxy_read_timeout 90

```

}  
}  
vague numbers as below and then small message. what is wrong /  
------------error  
"374", "375", "376", "377", "378", "379", "380", "381", "382", "383", "384", "385", "386", "387", "388", "389", "390", "391", "392", "393", "394", "395", "396", "397", "398", "399", "400", "401", "402", "403", "404", and "405" settings were not applied. Check for spelling errors and ensure that expected plugins are installed.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [August 1, 2018, 5:47pm UTC](https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449/2 "2018-08-01T17:47:25Z")

</div>

The errors you are seeing are happening because your `kibana.yml` file has text in it that seems to not be YML but actually nginx configuration.

1. Run your kibana.yml through [http://www.yamllint.com/](http://www.yamllint.com/) and work it out so it comes out the same after it goes through the validator.
2. Read about how to set up an nginx proxy so you can put the configuration for proxying nginx to Kibana in an nginx configuration file.

---

<div class="post-metadata">

**Author:** ![Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna2/32/20893_2.png) [@Krishna2](https://discuss.elastic.co/u/Krishna2)\
**Post date:** [August 1, 2018, 9:02pm UTC](https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449/3 "2018-08-01T21:02:08Z")

</div>

As per your yml validator my configuration file (it says valid YML file)  
is good. Is this proxy is an issue ? I am going thru Nginx docs . I will try your suggestion also. Update this soon.  
thanx

---

<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:** [August 29, 2018, 9:02pm UTC](https://discuss.elastic.co/t/nginx-authentication-not-working-for-cabana/142449/4 "2018-08-29T21:02:13Z")

</div>

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