Grafana does not work if behind apache reverse proxy

I’m using grafana v5.1.4 (commit: a5fe24fcc) configured to run behind an apache 2.4 reverse proxy on path /grafana. This setup is not working

The following screen displays:

errografana

Config apache:

    ProxyPreserveHost On
    ProxyRequests On
    RewriteRule ^/grafana$ grafana/ [R]
    ProxyPass /grafana http://grafana.staged-by-discourse.com
    ProxyPassReverse /grafana http://grafana.staged-by-discourse.com

Config Grafana

[server]
;protocol = http
;http_port = 3000
;domain =
;root_url = %(protocol)s://%(domain)s/grafana/

Problem solved, did not know the “;” was comment. I thought it was just the “#”

Thanks for posting this, your apache config works :grinning: