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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Redirect http to https for Power BI Report Server

I have on-prem power bi report server hosted on windows server. I was using port 80 for all the reports inside organization.

let's say the link to access it was: http://myserver/reports/

Now I have installed certificate and it works fine when I use https://myserver/reports/

What I want to do is when the user uses http://myserver/reports/ it will redirect to https://myserver/reports/ 

1 ACCEPTED SOLUTION
hackcrr
Super User
Super User

@Anonymous 

First, you can use IIS to implement website redirection. You can refer to the following links for this. The steps they describe are basically correct:

https://stackoverflow.com/questions/51063815/redirect-http-to-https-via-iis#:~:text=In%20IIS%2C%20right%20click%20on%20the%20website%2C%20choose,set%20to%20%22True%22%20the%20properties%20%22Enabled%22%20and%20%22RedirectHttpToHttps%22.

I would also recommend using NGINX reverse proxy because it has better management and UI.
If you don't already have NGINX installed on your server, you can install it. On Windows servers, you may need to install it through a package manager such as Chocolatey, or download and configure it manually.
Open the NGINX configuration file (usually named nginx.conf on Linux systems or located at /etc/nginx/sites-available/default).
Add a server block to listen on port 80 (HTTP) and redirect to HTTPS. Here is a basic configuration example:

 

server {
    listen 80;
    server_name myserver;

    location / {
        return 301 https://$server_name$request_uri;
    }
}

 

Make sure you have configured a separate server block to handle HTTPS requests. It should look something like this:

 

server {
    listen 443 ssl;
    server_name myserver;

    ssl_certificate /path/to/your/certificate.crt;
    ssl_certificate_key /path/to/your/private.key;

    location / {
        proxy_pass http://localhost:80; # Assuming your Power BI Report Server is running on port 80 internally
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

 

After making these changes, restart NGINX to apply the configuration:

 

sudo nginx -s reload

 

With this setup, any HTTP request to http://myserver/reports/ will be redirected to https://myserver/reports/, providing secure access to your Power BI Report Server.

 

If I have answered your question, please mark my reply as solution and kudos to this post, thank you!

View solution in original post

1 REPLY 1
hackcrr
Super User
Super User

@Anonymous 

First, you can use IIS to implement website redirection. You can refer to the following links for this. The steps they describe are basically correct:

https://stackoverflow.com/questions/51063815/redirect-http-to-https-via-iis#:~:text=In%20IIS%2C%20right%20click%20on%20the%20website%2C%20choose,set%20to%20%22True%22%20the%20properties%20%22Enabled%22%20and%20%22RedirectHttpToHttps%22.

I would also recommend using NGINX reverse proxy because it has better management and UI.
If you don't already have NGINX installed on your server, you can install it. On Windows servers, you may need to install it through a package manager such as Chocolatey, or download and configure it manually.
Open the NGINX configuration file (usually named nginx.conf on Linux systems or located at /etc/nginx/sites-available/default).
Add a server block to listen on port 80 (HTTP) and redirect to HTTPS. Here is a basic configuration example:

 

server {
    listen 80;
    server_name myserver;

    location / {
        return 301 https://$server_name$request_uri;
    }
}

 

Make sure you have configured a separate server block to handle HTTPS requests. It should look something like this:

 

server {
    listen 443 ssl;
    server_name myserver;

    ssl_certificate /path/to/your/certificate.crt;
    ssl_certificate_key /path/to/your/private.key;

    location / {
        proxy_pass http://localhost:80; # Assuming your Power BI Report Server is running on port 80 internally
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

 

After making these changes, restart NGINX to apply the configuration:

 

sudo nginx -s reload

 

With this setup, any HTTP request to http://myserver/reports/ will be redirected to https://myserver/reports/, providing secure access to your Power BI Report Server.

 

If I have answered your question, please mark my reply as solution and kudos to this post, thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.