Grafana using sub path

Hey guys,

Someone is using grafana with subpath?

I’ve made this following changes:

domain = mydomain.com
root_url = http://mydomain.com/grafana/
serve_from_sub_path = true

But it is not working… I’m using Ubuntu 20.04 with Grafana 8.4.4.

Hi,
I have used subpath and it is working fine for me.
in my config this is what i have set
domain = localhost
enforce_domain = false
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true

what is the error you are getting ?

Hi,

Thanks for your answer.

My goal is access my url like:

mydomain.com/grafana
Without the 3000 port

Once I tried it I got the error:

Not Found

The requested URL was not found on this server.

My config:

domain = mydomain.com
enforce_domain = false
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true