# I cannot change kibana to port 443

**URL:** <https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013>\
**Category:** Kibana\
**Created:** [May 23, 2020, 5:34pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013 "2020-05-23T17:34:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wspoon](https://avatars.discourse-cdn.com/v4/letter/w/5e9695/32.png) [@wspoon](https://discuss.elastic.co/u/wspoon)\
**Post date:** [May 23, 2020, 5:34pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013/1 "2020-05-23T17:34:35Z")

</div>

I am trying to have kibana on port 443 so I can use a domain name to access from the internet. Whenever the port is 5601 kibana starts correctly, but when I change the port to 443 the kibana process fails with the following error: Start request repeated too quickly, Failed with result 'exit-code'. The OS is Centos 8. Te kibana configs are below.

```auto
port: 443
server.host: "two.local"
server.ssl.certificate: "/etc/kibana/kibana.crt"
server.ssl.key: "/etc/kibana/kibana.key"
server.ssl.enabled: true
elasticsearch.hosts: ["https://master.local:9200","https://one.local:9200","https://two.local:9200"]
elasticsearch.ssl.verificationMode: none
elasticsearch.username: "kibana"
elasticsearch.password:password
xpack.security.encryptionKey: "ghghgghg"

```

---

<div class="post-metadata">

**Author:** ![KoettingSimon](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KoettingSimon](https://discuss.elastic.co/u/KoettingSimon)\
**Post date:** [May 23, 2020, 6:21pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013/2 "2020-05-23T18:21:43Z")

</div>

Hi,  
The ports 0-1023 are the "well known ports" and reserved, so you need higher privileges to bind to one of that port.  
You could try [this](https://unix.stackexchange.com/questions/10735/allowing-a-user-to-let-listen-to-a-port-below-1024).  
A other way would be a reverse proxy using nginx or Apache.  
Personally I recommend the reverse proxy solution.

---

<div class="post-metadata">

**Author:** ![wspoon](https://avatars.discourse-cdn.com/v4/letter/w/5e9695/32.png) [@wspoon](https://discuss.elastic.co/u/wspoon)\
**Post date:** [May 23, 2020, 8:44pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013/3 "2020-05-23T20:44:28Z")

</div>

Thanks Simon. Is there a reverse proxy example you know about? I ran the following command yesterday, and it did not work: `setcap CAP_NET_BIND_SERVICE=+eip /usr/share/kibana/bin/kibana`. Thanks!

---

<div class="post-metadata">

**Author:** ![KoettingSimon](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@KoettingSimon](https://discuss.elastic.co/u/KoettingSimon)\
**Post date:** [May 23, 2020, 9:10pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013/4 "2020-05-23T21:10:22Z")

</div>

You can find the explanation and some examples on how to configure a nginx reverse proxy [here.](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/)

---

<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 20, 2020, 9:10pm UTC](https://discuss.elastic.co/t/i-cannot-change-kibana-to-port-443/234013/5 "2020-06-20T21:10:27Z")

</div>

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