# Changing Grafana Port from 3000 to 443

**URL:** <https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853>\
**Category:** General\
**Created:** [May 7, 2020, 8:54am UTC](https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853 "2020-05-07T08:54:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hswt451muh](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@hswt451muh](https://community.grafana.com/u/hswt451muh)\
**Post date:** [May 7, 2020, 8:54am UTC](https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853/1 "2020-05-07T08:54:40Z")

</div>

Hi,

I have operating system Debian. My grafana is working on port 3000 by default. Is it possible to change this port from 3000 to 443???

Thank you.

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/fadjar340/32/10236_2.png) [@fadjar340](https://community.grafana.com/u/fadjar340)\
**Post date:** [May 9, 2020, 4:19am UTC](https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853/2 "2020-05-09T04:19:12Z")

</div>

It’s possible, but not the best practice, better you put httpd or nginx in front of grafana and config the reverse-proxy.

> **[Run Grafana behind a reverse proxy](https://grafana.com/tutorials/run-grafana-behind-a-proxy/#1)**
>
> Learn how to run Grafana behind a reverse proxy

---

<div class="post-metadata">

**Author:** ![dah](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dah](https://community.grafana.com/u/dah)\
**Post date:** [March 29, 2023, 6:57am UTC](https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853/3 "2023-03-29T06:57:06Z")

</div>

I tried to follow the instruction for HAProxy, but it doesn’t work …  
I have HAProxy set up, which does forwarding based on subdomains and SSL offloading.

I added the domain record do the grafana.ini

My HAProxy grafana backend looks like this:

```auto
backend grafana
    #http-request replace-header Host ^(.*?)(:[0-9]+)?$ \1:3000
    #http-request redirect scheme https if !{ ssl_fc }
    http-request set-path %[path,regsub(^/grafana/?,/)]
    server grafana 10.10.79.73:3000 check ssl verify none

```

it looks like whether the snippet here [Run Grafana behind a reverse proxy | Grafana Labs](https://grafana.com/tutorials/run-grafana-behind-a-proxy/#configure-haproxy) is for editing the path behind the domain, which is not what I want.  
I tried this: [rewrite - I need to configure haproxy with multiple ssl ports - Server Fault](https://serverfault.com/questions/831065/i-need-to-configure-haproxy-with-multiple-ssl-ports) ,  
but I wasn’t sure whether this belongs into the backend at all…

I added `ssl verify none` again, because my grafana instance is only accessible via https.

Sorry … I am not an expert …  
Any ideas?  
Thanks!

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/fadjar340/32/10236_2.png) [@fadjar340](https://community.grafana.com/u/fadjar340)\
**Post date:** [April 7, 2023, 1:41pm UTC](https://community.grafana.com/t/changing-grafana-port-from-3000-to-443/29853/4 "2023-04-07T13:41:01Z")

</div>

You don’t need to check ssl to the backend, because grafana just use http.

Regards,  
Fadjar
