# Access Grafana via Reverse Proxy subpath :

**URL:** <https://community.grafana.com/t/access-grafana-via-reverse-proxy-subpath/85783>\
**Category:** Configuration\
**Created:** [April 14, 2023, 10:10am UTC](https://community.grafana.com/t/access-grafana-via-reverse-proxy-subpath/85783 "2023-04-14T10:10:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cruftlords](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@cruftlords](https://community.grafana.com/u/cruftlords)\
**Post date:** [April 14, 2023, 10:10am UTC](https://community.grafana.com/t/access-grafana-via-reverse-proxy-subpath/85783/1 "2023-04-14T10:10:49Z")

</div>

- 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](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](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
