Access Grafana via Reverse Proxy subpath :

  • What Grafana version and what operating system are you using?

Grafana version 9.4.7 on Debian 11

  • What are you trying to achieve?

on my system i have a apache a grafana and a prometheus

i want to access grafana and prometheus via reverse proxy of apache
so if i go to http://hostname/grafana it gets to grafana
and the same with prometheus

  • How are you trying to achieve it?

Apache configs

ProxyRequests Off
ProxyPreserveHost On

ProxyPass /grafana “ht tp://ip:3000”
ProxyPassReverse /grafana /ht tp://ip:3000"

ProxyPass /prometheus “ht tp://ip:9090”
ProxyPassReverse /prometheus “ht tp://ip:9090”

grafana configs:

domain: ip
root_url = http://localhost:80/grafana
server_from_sub_path = true
cookie_secure = false
cookie_samesite = none

  • What happened?

prometheus work with this just fine and at first grafana also seems like that but when i try to log in with microsoft edge it says log in succesfully and the i get redirected to the login page again…
but when i tried it with firefox it did work to log in but when i go to my prometheus dashboards
they dont get any data. i already checked the data sources and it says its ok

  • What did you expect to happen?

that i see my data

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

i havent found any errors or text that could help