IIS Reverse proxy settings for blazor server

마루 라온 21 Reputation points
2021-08-11T04:12:08.123+00:00

I wanted to link other port's site with 80 port
So i setted reverse proxy that pattern like "(example.*)" url rewrite inside IIS
to link blazor server with "https://www.site.com/example"
but i found that if i do this blazor server can't get resource of itself
122128-image.png

Blazor wants to get resource of itself but it doesn't try to get by localhost or it's own port.

I heard there's a way to connect IIS with nodeJS server with reverse proxy settings.
(https://learn.microsoft.com/en-us/answers/questions/507816/can-static-iis-php-server-and-nodejsexpress-server.html)
And is there a way to reverse proxy with Blazor server project?

Internet Information Services
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,579 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,311 Reputation points
    2021-08-11T19:39:20.137+00:00

    as Blazor server is an asp.net core signal/r app not sure why you want to reverse proxy. But you must configure IIS reverse proxy for single/r.

    https://stackoverflow.com/questions/41566472/signalr-with-iis-10-and-arr-3-0

    also special care must be taken if you you configure the reverse proxy as a subsite (/example). the easiest if the site you are reverse proofing to uses the same subsite. be sure all html links are relative.

    we could help more if you gave more info:

    1. the Blazor server site url (I assume its another computer or it would be hosted directly)
    2. the IIS reverse proxy site url for the Blazor app
    3. the reverse proxy settings.
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.