Azure web app not displaying static html files at root

Mitchell Forsberg 96 Reputation points
2020-03-04T01:28:33.477+00:00

I have more than one static html file at the root of my web application. I can ftp to the application on azure and see them at the root directory /site/wwwroot/ but none of them will be display when navigating to them in a browser. For example the azure default hosting start file.

https://<myazureapp>.azurewebsites.net/hostingstart.html

Returns the error, which is the same error returned for all static html files at the root.

"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

Thank you.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,959 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mitchell Forsberg 96 Reputation points
    2020-03-04T02:27:42.307+00:00

    I found the problem.

    I had added mime type mapping for static files for caching reasons and neglected to add the following for html files:

    <mimeMap fileExtension=".html" mimeType="text/html"/>

    Adding it solved the problem.


0 additional answers

Sort by: Most helpful