# 403 Forbidden

**URL:** <https://discuss.elastic.co/t/403-forbidden/132746>\
**Category:** Kibana\
**Created:** [May 22, 2018, 8:12am UTC](https://discuss.elastic.co/t/403-forbidden/132746 "2018-05-22T08:12:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asalma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asalma/32/32199_2.png) [@asalma](https://discuss.elastic.co/u/asalma)\
**Post date:** [May 22, 2018, 8:12am UTC](https://discuss.elastic.co/t/403-forbidden/132746/1 "2018-05-22T08:12:11Z")

</div>

Hi ,

I activate the authentification in nginx, I did :

```auto
htpasswd -c /etc/nginx/htpasswd.users kibanaadmin

```

and my kibana.conf is :

```auto
 Server {
    listen 80;
    server_name 172.16.250.29;
    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/.kibana-user;
   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;
    }
}

```

when I restart and I want on kibana, I had error 403 forbidden !!!

Please how can I resolve this ???

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [May 22, 2018, 2:00pm UTC](https://discuss.elastic.co/t/403-forbidden/132746/2 "2018-05-22T14:00:53Z")

</div>

what version of kibana are you running ?

I am not too familiar with the nginx, but i found

> **[How to Secure Kibana using Nginx as a reverse proxy on CentOS 7](https://www.hugeserver.com/kb/how-secure-kibana-nginx-centos/)**
>
> Introduction Kibana is an open-source visualization and analytics platform designed to work with Elasticsearch. Kibana is used to search and view the data that stored in Elasticsearch indices, You can easily visualize your data and create charts,...

---

<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 19, 2018, 2:08pm UTC](https://discuss.elastic.co/t/403-forbidden/132746/3 "2018-06-19T14:08:02Z")

</div>

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