why is azure app service responding with 404?

4.2k views Asked by At
This name.azurewebsites.net page can’t be found
No webpage was found for the web address: https://name.azurewebsites.net/
HTTP ERROR 404

i followed this tutorial, everything went smoothly from the build to deployment, i'm using nodejs 10.15.0 and when i hit node -v in the VM it gives

0.10.14

edit

enter image description here

1

There are 1 answers

1
AjayKumar On

Kindly check to see if adding IIS to pass errors in web.config helps.

 <httpErrors existingResponse="PassThrough" /> 

In case the above does not help, add the following in the web.config and see if that works.

 <staticContent><mimeMap fileExtension=".json" mimeType="application/json" /></staticContent>

In this similar discussion thread, another user was able to fix the issue by adding directive to "location /" block:

proxy_set_header Host rpsexpressnodetest.azurewebsites.net;

You could leverage App Service diagnostics to fetch more pointers on the issue.
To access App Service diagnostics, navigate to your App Service app in the Azure portal. In the left navigation, click on Diagnose and solve problems.

Thanks for sharing the screenshot, please do ensure that the site deployment files are available D:\home\site\wwwroot\ directory.

Please check to see if the above works or share more details about your WebApp for further investigation.

enter image description here