Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jcaroe
Regular Visitor

Add context url to powerbi endpoint

Hello everyone,

 

I asked a similar question a couple months ago but after testing out some options we are still on an empasse.

Basically what we are trying to achieve is add a context url to each Report Server - Power BI virtual directory. Those are:
/Reports
/ReportServer
/powerbi

 

Through the use of an apache server, we managed to add the context we need in front of /Reports and /Reportserver, re-writing urls to /omr/Reports and /omr/ReportServer. 
We still have problems with the third virtual directory, which is /powerbi. What happens when you navigate to any dashboard inside a Report Server is that internally, the Web Page of the Report Server calls /powerbi endpoints to retrieve the corresponding data. The problem is that we need that endpoint to be rewritten to /omr/powerbi, but we cant do that server side. We need to have a way to change it in the fetch operation, when the request is sent.

Is there any possibility to do this?

jcaroe_0-1749116606739.png

 

1 ACCEPTED SOLUTION
v-sdhruv
Community Support
Community Support

Hi @jcaroe ,
You are not doing anything wrong here. Its just that Power BI Report Server does not officially support hosting behind a sub-path  like /omr . It is designed to run at the root of a domain.
Best practice is to host it at the root of a dedicated subdomain.
If you still need help, you can open a Support ticket.

To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn


Hope this helps!

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

View solution in original post

4 REPLIES 4
v-sdhruv
Community Support
Community Support

Hi @jcaroe ,

I hope you were successfully able to raise the ticket.
If you face any issues, feel free to reach out.
Thank you for using Community Forum.

v-sdhruv
Community Support
Community Support

Hi @jcaroe ,
You are not doing anything wrong here. Its just that Power BI Report Server does not officially support hosting behind a sub-path  like /omr . It is designed to run at the root of a domain.
Best practice is to host it at the root of a dedicated subdomain.
If you still need help, you can open a Support ticket.

To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn


Hope this helps!

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank You

v-sdhruv
Community Support
Community Support

Hi @jcaroe ,

Power BI Report Server does not support adding a custom context path  to the default URLs (/Reports,/Report Server)  and this includes the /Powerbi virtual directory.

Altering the built-in virtual directories themselves is not supported through any PBIRS configuration options.

To have everything under a prefix like /omr, you’ll need to handle that in your proxy layer, not PBIRS.
However, you can try to add a reverse proxy route for /powerbi.

This documentation provides step by side guide to configure reverse Proxy

https://learn.microsoft.com/en-us/iis/extensions/url-rewrite-module/reverse-proxy-rule-template

Hope this helps!
If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.



Unfortunately, even with reverse proxying, the problem for us still remains, because the FE of Power BI Report Server still sends requests to https://hostname/powerbi -> the "hostname" is a proxy server which only understand /omr paths, and powerbi is rejected.

Thank you for your time.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.