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://localhost:3000
    ProxyPassReverse /grafana http://localhost:3000

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 “#”