Reputation: 133
I am new to creating a web app - I tried the following https://learn.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs with my own code. My code works no problem locally, I just use node app.js. I go to my created site and get "You do not have permission to view this directory or page."
I attempted to change the 127.0.0.1 to the virtual ip given and test.azurewebsite.net given. Am I suppose to keep point it at the given ip address/url?
Thanks for any help!
Upvotes: 0
Views: 68
Reputation: 963
Thanks for contributing to Stack Overflow.
You usually get this error when Azure encounters an error while running your web app. In order to get the detailed error messages, follow below steps to enable it.
• Login to Azure > App Services (left side menu) > Your Web App > App Service logs (search box is at the top if you can't find it), then turn on Detailed Error Messages or turn on all of the logging options, up to you.
• Now add the following in your Web Config file,
<system.web>
<customErrors mode="Off" />
<httpErrors errorMode="Detailed">
</httpErrors>
</system.web>
Finally, upload the Web Config to Azure and see if you can get detailed error messages to find the root cause.
You may check whether the deployed files are available or not using Kudu Console.
Also, make sure that your startup file (For ex: index.htm) is added to the default documents section.
Also take a look at this thread if it might help in any way - Thread
I hope this information helps. Please feel free to reach out for any questions you may have.
Upvotes: 1