Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my static html file not found in an Azure web app?

Tags:

html

azure

I created a web app from the Azure portal. I didn't see an option for a static html website, so I chose Node.js when asked to choose a type. Then I set up continuous deployment with my github repo that contained my html file and synced. I see the html file in the Azure command prompt directory listing, but when I browse to the location I get a 404.

Why can't I browse to that location? I'm guessing there is some property hiding files with the .html extenstion or some such thing. I don't know where to look.

Azure 404 Directory listing

like image 730
Tom Resing Avatar asked Jan 25 '26 15:01

Tom Resing


1 Answers

The continuous deployment option in Azure creates and maintains a web.config file specific to node.js. That was preventing access to the html file. Deleting the web.config isn't enough in this case because continuous deployment redeploys the file. There is a checkbox in the release manager for web.config that must be unchecked.

like image 89
Tom Resing Avatar answered Jan 27 '26 05:01

Tom Resing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!