# Grafana reverse proxy issues

**URL:** <https://community.grafana.com/t/grafana-reverse-proxy-issues/38532>\
**Category:** Grafana\
**Created:** [October 28, 2020, 4:28am UTC](https://community.grafana.com/t/grafana-reverse-proxy-issues/38532 "2020-10-28T04:28:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iso1](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@iso1](https://community.grafana.com/u/iso1)\
**Post date:** [October 28, 2020, 4:28am UTC](https://community.grafana.com/t/grafana-reverse-proxy-issues/38532/1 "2020-10-28T04:28:22Z")

</div>

Hi,

I am trying to set nginx reverse proxy for grafana. I have nginx server block for grafana on a different HTTPS port. Normal HTTP port only shows the welcome nginx html file, but when I access HTTPS, redirect happens to grafana sub path “grafana” but I am presented with a black background and red letters “ **If you’re seeing this Grafana has failed to load its application files** ”

When I access grafana locally, everything works fine HTTP.  
This is what I have for **NGINX config on HTTPS** :

> ```
> location /grafana/ {
> proxy_pass http://grafana:3000/;
> }
> 
> ```

**/etc/hosts**

> internal-ip grafana

**/etc/grafana/grafana.ini**

> domain = sub-path.my-public-domain  
> enforce\_domain = false  
> root\_url = %(protocol)s://%(domain)s:%(http\_port)s/grafana/  
> serve\_from\_sub\_path = true

I believe my problem is because i am accessing http **s** ://sub-path.my-public-domain/grafana , but the proxy is set to NO SSL http://grafana:3000/ , can this be causing this proxy issue still even though I believe I have set the correct settings in grafana.ini?

Not sure what else to try, the main goal is to run all in SSL, either locally ssl or production ssl. Let’s Encrypt is not working right now with grafana (permission denied even with chmod 777 for testing!), NGINX loads Let’s Encrypt certs and keys just fine.

Cheers
