Hosting on 2 different domains and to redirect to individual domains post login

Grafana version - 7.3
Problem:
Hosting on 2 different domains but redirects to the one in root url, since there is no way to route on grafana side i was trying to update our istio virtual service. So once logged in it is routing to the url mentioned in root_url in grafana.ini. For context we have two endpoints one for internal one for external. Did anyone face this or any suggestions? I need this to run on both domains and redirect accordingly.

It is not clear what do you want, so let me assume “Hosting on 2 different ulrs but redirects to the one in root URL” as “I want to point 2 domains to Grafana, but then redirect second domain to first domain”:

You have old Grafana version, so make sure that’s supported config in your old version first.

Let me rephrase it, So i have hosted it on 2 domains and post login it needs to redirect based on the domain the request was made from so domain A -->domain A and B to B.

Does Not sound like a grafana thing. You need some sort of proxy with redirect

What is “post login”?

seem like the url in the grafana.ini only single domain

how can we configure in grafana.ini for multiple domains?

As I know, it’s not possible into the Grafana instance, unless you have 2 grafana instance that can be achieved using docker with different environment variable or volume mounting for each instance.

Regards,
Fadjar