error 404 on brand new azure webapps static webpage

simon b 0 Reputation points
2024-10-31T12:07:23.6866667+00:00

I have just created a new free webapp (python 8.2) and used bash and vi to create a simon1.htm file in wwwroot directory. But if in chrome I go to {mydomain}.azurewebsites.net/simon1.htm I get 404.

2024-10-31T12:02:51.5811779Z 169.254.129.1 - - [31/Oct/2024:12:02:51 +0000] "GET /simon1.htm HTTP/1.1" 404 207 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"

kudu_ssh_user@aws19_kudu_1f07f38093:~/site/wwwroot$ ls -l

total 5

-rwxrwxrwx 1 nobody nogroup 3269 Oct 31 06:06 hostingstart.x

-rwxrwxrwx 1 nobody nogroup 54 Oct 31 11:48 index.htm

-rwxrwxrwx 1 nobody nogroup 54 Oct 31 08:45 simon1.htm

kudu_ssh_user@aws19_kudu_1f07f38093:~/site/wwwroot$ pwd

/home/site/wwwroot

kudu_ssh_user@aws19_kudu_1f07f38093:~/site/wwwroot$

this should be the simplest thing in the world but it's driving me nuts! All that is is simon1.htm is hello world in html. I've stopped and restarted the service for no joy,

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

1 answer

Sort by: Most helpful
  1. Dan Rios 2,015 Reputation points MVP
    2024-11-01T10:03:58.9333333+00:00

    How did you deploy to the web app? And is it currently in a healthy state? Windows or Linux? .NET? If you go to the overview page > diagnose and solve problems and check these areas for obvious errors on the functionality of the web app:

    User's image

    Alternatively, it may be that you're just trying to upload a .htm file into wwwroot manually? and not using a framework like .NET. If so, I am not sure if that would work. You can look into Azure Static Web Apps (different product to Azure Web App) or Azure Storage for static content if that is your goal specifically without a framework, see more:

    Otherwise if you are looking to go ahead with Azure Web Apps, then take a look at this, and maybe it will nudge you in the right direction:

    Let me know what you find, and we can try and work it out together :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.