# Rebind Kibana to localhost only

**URL:** <https://discuss.elastic.co/t/rebind-kibana-to-localhost-only/169701>\
**Category:** Kibana\
**Created:** [February 24, 2019, 4:35am UTC](https://discuss.elastic.co/t/rebind-kibana-to-localhost-only/169701 "2019-02-24T04:35:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wad11656](https://avatars.discourse-cdn.com/v4/letter/w/71c47a/32.png) [@wad11656](https://discuss.elastic.co/u/wad11656)\
**Post date:** [February 24, 2019, 4:35am UTC](https://discuss.elastic.co/t/rebind-kibana-to-localhost-only/169701/1 "2019-02-24T04:35:09Z")

</div>

I've been asked to rebind Kibana to "localhost only." Does this imply I shouldn't be using port 5601?

What exactly does this mean, and how can I check that I've successfully rebound Kibana to localhost only? (Ubuntu 16)

BTW, I'm using Nginx to access the Kibana dashboard. In my Nginx config file, I have the line

`proxy_pass http://localhost:5601;`

So does that mean Kibana is not bound to localhost only because it still uses port 5601?

**/etc/nginx/sites-enabled/mydomain.com** :

```
  server {
      listen 80 default_server;
      server_name _;
      return 301 https://$host$request_uri;
  }
  server {
      listen 443 ssl;
      include snippets/signed.conf;
      include snippets/ssl-params.conf;
      server_name x.x.x.x;
      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;
      }
  }

```

(My entire **/etc/kibana/kibana.yml** is commented out)

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [February 25, 2019, 11:30pm UTC](https://discuss.elastic.co/t/rebind-kibana-to-localhost-only/169701/2 "2019-02-25T23:30:30Z")

</div>

You can control what address Kibana binds to by configuring the `server.host` option in kibana.yml. We only bind to localhost by default.

---

<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:** [March 25, 2019, 11:30pm UTC](https://discuss.elastic.co/t/rebind-kibana-to-localhost-only/169701/3 "2019-03-25T23:30:32Z")

</div>

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