# Kibana port not work property

**URL:** <https://discuss.elastic.co/t/kibana-port-not-work-property/143513>\
**Category:** Kibana\
**Created:** [August 8, 2018, 12:22pm UTC](https://discuss.elastic.co/t/kibana-port-not-work-property/143513 "2018-08-08T12:22:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyderfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weyderfs/32/32935_2.png) [@weyderfs](https://discuss.elastic.co/u/weyderfs)\
**Post date:** [August 8, 2018, 12:22pm UTC](https://discuss.elastic.co/t/kibana-port-not-work-property/143513/1 "2018-08-08T12:22:40Z")

</div>

Dear,  
Is anyone else having trouble accessing Kibana in the browser either via port 5601 or via 80 with authentication via NGINX?

My scenery:  
O.S: Ubuntu Server Minimal 18.04 - LTS  
Firewall: UFW disable  
I made the entire installation via repository, following some tests:

```
mservice@sentinel:~$ sudo ufw status
[sudo] password for mservice:
Status: inactive
mservice@sentinel:~$ curl -v http://127.0.0.1:5601
* Rebuilt URL to: http://127.0.0.1:5601/
* Trying 127.0.0.1...
* TCP_NODELAY set
* connect to 127.0.0.1 port 5601 failed: Connection refused
* Failed to connect to 127.0.0.1 port 5601: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 5601: Connection refused
mservice@sentinel:~$ sudo systemctl status kibana
● kibana.service - Kibana
   Loaded: loaded (/etc/systemd/system/kibana.service; disabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-08-08 09:20:20 -03; 51s ago
 Main PID: 19392 (node)
    Tasks: 10 (limit: 4648)
   CGroup: /system.slice/kibana.service
           └─19392 /usr/share/kibana/bin/../node/bin/node --no-warnings /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

Aug 08 09:20:20 sentinel systemd[1]: Started Kibana.

```

When access via browser return error 501 - bad gateway

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [August 9, 2018, 2:13am UTC](https://discuss.elastic.co/t/kibana-port-not-work-property/143513/2 "2018-08-09T02:13:03Z")

</div>

What does your NGinx proxy look like?

---

<div class="post-metadata">

**Author:** ![weyderfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weyderfs/32/32935_2.png) [@weyderfs](https://discuss.elastic.co/u/weyderfs)\
**Post date:** [August 10, 2018, 11:43am UTC](https://discuss.elastic.co/t/kibana-port-not-work-property/143513/3 "2018-08-10T11:43:59Z")

</div>

@tylersmalley, I wrote it:

```
server {
        listen 80;

        server_name sentinela;

        auth_basic "Acesso Restrito!";
        auth_basic_user_file /etc/nginx/htpasswd.kibana;

        location / {
            proxy_pass http://192.168.10.128: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;        
        }
    }

```

I'm not familiarity with NGinx.

---

<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:** [September 7, 2018, 11:44am UTC](https://discuss.elastic.co/t/kibana-port-not-work-property/143513/4 "2018-09-07T11:44:02Z")

</div>

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