# Kibana Dashboard login with Nginx reverse proxy

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130>\
**Category:** Kibana\
**Created:** [November 10, 2018, 10:13am UTC](https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130 "2018-11-10T10:13:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahid\_Chaudhary](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahid_chaudhary/32/37134_2.png) [@Shahid\_Chaudhary](https://discuss.elastic.co/u/Shahid_Chaudhary)\
**Post date:** [November 10, 2018, 10:13am UTC](https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130/1 "2018-11-10T10:13:29Z")

</div>

I installed the ELK on single server node for the login dahboard i user nginx bases auth but i am unable to login on the dashboard , when i check the nginx error logs i am getting these.

root@ip-172-31-50-xxx:/home/ubuntu# sudo tail -f /var/log/nginx/error.log  
2018/11/10 00:41:57 [error] 9727#9727: \*1 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "35.245.88.135"  
2018/11/10 00:42:06 [error] 9727#9727: \*1 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "

 ![Ngnix%20login%20error](https://us1.discourse-cdn.com/elastic/original/3X/0/5/055322fab1816e609244f18433540010d36c1c8c.png) "  
2018/11/10 00:48:06 [error] 9727#9727: \*4 user "admin": password mismatch, client: 94.209.200.140, server: , request: "GET / HTTP/1.1", host: "35.245.88.135"  
2018/11/10 00:48:38 [alert] 9727#9727: \*5 open socket #9 left in connection 4  
2018/11/10 00:48:38 [alert] 9727#9727: aborting

Can up please help on this.

i installed ELK from this URL

> **[Using Big Data to Spot Extremists Online Before They Post Anything Dangerous...](https://dzone.com/articles/using-big-data-to-spot-extremists-online-before-th)**
>
> A discussion of what a team of data scientists and software engineers out of MIT are doing to with predictive and text data analytics to make the world safer.

for Ngnix auth i follow these steps.

sudo apt-get -y install nginx

echo "admin:`openssl passwd -apr1 data@123pass`" | sudo tee -a /etc/nginx/htpasswd.kibana  
sudo nano /etc/nginx/sites-available/default

/etc/nginx/sites-available/default

```auto
server {
    listen 80;

    server_name example.com;

    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/htpasswd.users;

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

```

sudo service ngnix restart.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 10, 2018, 10:22am UTC](https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130/2 "2018-11-10T10:22:10Z")

</div>

Please only use the topic tags if they relate to X-Pack functionality:)

---

<div class="post-metadata">

**Author:** ![Shahid\_Chaudhary](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahid_chaudhary/32/37134_2.png) [@Shahid\_Chaudhary](https://discuss.elastic.co/u/Shahid_Chaudhary)\
**Post date:** [November 10, 2018, 10:24am UTC](https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130/3 "2018-11-10T10:24:22Z")

</div>

@warkolm, OK i will remove the tags because its not related to X-Pack.  
Its open source ELK.Please help me on this query.

---

<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:** [December 8, 2018, 10:24am UTC](https://discuss.elastic.co/t/kibana-dashboard-login-with-nginx-reverse-proxy/156130/4 "2018-12-08T10:24:23Z")

</div>

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