Home > OS >  how to visit a html page which is directly put in kudu home/site/wwwroot?
how to visit a html page which is directly put in kudu home/site/wwwroot?

Time:10-28

I have a .net core 3.1 mvc project, and published to azure web app. Then in kudu -> home/site/wwwroot, I created a html file, like below: enter image description here

But when I want to visit the html page via azure web app like this "https://xxx.azurewebsites.net/test111.html", it has 404 error: enter image description here

Are there any way to fix this, from code or azure portal?

CodePudding user response:

Looks like you have an ASP.NET Core app? Have you enabled serving of static files, re:

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0

  • Related