question

MitchellForsberg-0065 avatar image
0 Votes"
MitchellForsberg-0065 asked ·

Azure web app not displaying static html files at root

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MitchellForsberg-0065 avatar image
0 Votes"
MitchellForsberg-0065 answered ·

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.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MitchellForsberg-0065, Glad to know that your issue has been resolved. Thanks for posting the solution that worked for you. You may checkout these documents on this topic.

https://blogs.iis.net/richma/adding-mime-types-to-your-windows-azure-web-site https://docs.microsoft.com/azure/app-service/configure-common#configure-default-documents

Please do mark the helpful post by clicking on ‘Accept Answer’ & ‘Up-Vote’ to help the community find the right answers. Thanks for the follow-up & update.

0 Votes 0 · ·