# Grafana behind a proxy with ssl

**URL:** <https://community.grafana.com/t/grafana-behind-a-proxy-with-ssl/74299>\
**Category:** Configuration\
**Tags:** reverse-proxy\
**Created:** [October 17, 2022, 3:40pm UTC](https://community.grafana.com/t/grafana-behind-a-proxy-with-ssl/74299 "2022-10-17T15:40:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fritzchentastig](https://avatars.discourse-cdn.com/v4/letter/f/e495f1/32.png) [@fritzchentastig](https://community.grafana.com/u/fritzchentastig)\
**Post date:** [October 17, 2022, 3:40pm UTC](https://community.grafana.com/t/grafana-behind-a-proxy-with-ssl/74299/1 "2022-10-17T15:40:20Z")

</div>

Hello I am new to grafana and maybe there is a simple solution for that but I was not able to find that on the Internet. But I really want SSL to work. So thanks in advance.

- What Grafana version and what operating system are you using?  
Newest current version and Ubuntu 22.04LTS

- **What** are you trying to achieve?  
I want to get Grafana reachable from the internet with ssl

- **How** are you trying to achieve it?  
I am using an apache2 Webserver and its reverse proxy function. And signed it via certbot.

- What happened?  
Http works just fine but https does not work and grafana throws Origin not allowed at me

- What did you **expect** to happen?  
I expected HTTPS to work like HTTP

- Can you copy/paste the configuration(s) that you are having problems with?  
This is my censored apache conf

```auto
<VirtualHost *:80>
    ServerName ****.*********.de
    ProxyPreserveHost On
    SSLProxyEngine On
    ProxyPass / http://grafana.staged-by-discourse.com/ nocanon
    ProxyPassReverse / http://grafana.staged-by-discourse.com/
    RewriteEngine on
    RewriteCond %{SERVER_NAME} = ****.*********.de
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=perm>
</VirtualHost>

```

---

<div class="post-metadata">

**Author:** ![NorthTown](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@NorthTown](https://community.grafana.com/u/NorthTown)\
**Post date:** [March 27, 2024, 11:26pm UTC](https://community.grafana.com/t/grafana-behind-a-proxy-with-ssl/74299/2 "2024-03-27T23:26:18Z")

</div>

@fritzchentastig Hello! Did you get this working? I am very interested in doing the same on a Raspberry Pi. If you can provide any details that would be great! Thank you.
