Host Blazor app under subpath, possible?
See original GitHub issueI have a Blazor app which is served by nginx. How is it possible to host it along with other apps on nginx like:
https://www.site.com/phpsite
https://www.site.com/aspnetapp
http://www.site.com/blazorapp1
http://www.site.com/blazorapp2
I can access my dotnet apps via port directly (this is working):
https://www.site.com:4320/
https://www.site.com:4321/
https://www.site.com:4322/
When i am using url rewrite in nginx the files don’t get loaded but the index.html.
location / {
rewrite /blazorapp1(.*) /$1 break;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass https://www.site.com:4321;
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Host Blazor app under subpath, possible? · Issue #15541
I have a Blazor app which is served by nginx. How is it possible to host it along with other apps on nginx...
Read more >Host and deploy ASP.NET Core Blazor
To host a Blazor app in IIS, see the following resources: ... hosting and subpath hosting of multiple Blazor WebAssembly client apps.
Read more >How to host Blazor server app in IIS's sub folder?
I want to deploy a Blazor server app in IIS's sub folder. I followed https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/?view= ...
Read more >Blazor Server apps in MVC subfolders - Peter's
Just try to host a Blazor Server app in a sub folder of an existing MVC application, and you're in for some really...
Read more >Can you put a compiled Blazor Web Assembly app in any ...
Lets say I have an existing ASP.NET Core website. Can I take a compiled Blazor Web Assembly project and put it in a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Did you guys find a workaround for this? We are doing the exact same thing as you @seriouz
@SteveSandersonMS We are using nginx as a reverse proxy to the aspnet blazor app served by kestrel (which runs in a docker container with exposed port).