I am trying to deploy Grafana 11.6 under subdomain like https://domain.com/my-grafana.
This is relevant part of my grafana.ini file:
# The full public facing url
root_url = %(protocol)s://%(domain)s/my-grafana/
# Serve Grafana fromecified in `root_url` setting. By default it is set to `false` for compatibility reasons.
serve_from_sub_path = true
and this is my Apache configuration:
<Location /my-grafana/>
ProxyPreserveHost On
ProxyPass http://{{ getv "/mygrafana/host" }}:{{ getv "/mygrafana/port" }}/
ProxyPassReverse http://{{ getv "/mygrafana/host" }}:{{ getv "/mygrafana/port" }}/
</Location>
However, I can only access Grafana through port: https://domain.com:3002/my-grafana.
If I change my Apache configuration to the following:
<Location /my-grafana/>
ProxyPreserveHost On
ProxyPass http://{{ getv "/mygrafana/host" }}:{{ getv "/mygrafana/port" }}/my-grafana/
ProxyPassReverse http://{{ getv "/mygrafana/host" }}:{{ getv "/mygrafana/port" }}/my-grafana/
</Location>
I can access Grafana without specifying port but I get “Incorrect header check” error in my panels. I suppose this issue is due to double (de)compression cause by my Apache.
I tried disabling compression with:
SetEnvIf Request_URI "^/my-grafana/" no-gzip dont-vary
and
SetOutputFilter ""
but with NO success.
Does anyone have any other idea?
Thanks