Configure ASP.NET Core App to set new default files


I went thru the documentation provided for Use Static Files for ASP.NET core app. After Reading information from section Serving a default document & Using the UseFileServer method, following two questions are opened in my mind, respectively:

1 How can I add new default file if it is outside of wwwroot

2 How can I add new default file which is even under www using UseFileServer extension method

.NET Foundation Website | Blog | Projects | Code of Conduct