Getting error after pushing to Windows Azure: You do not have permission to view this directory or page

后端 未结 9 1358
[愿得一人]
[愿得一人] 2020-12-15 16:30

I have googled for the past 3 hours and found nothing on what to do with respect to the windows azure problem:

You do not have permission to view this

相关标签:
9条回答
  • 2020-12-15 16:55

    The azure tools have changed a lot since this question.

    I recommend people using the azure-cli. But funny enough I actually don't use it after I have used it once to create a site.

    What I use now is just the ability to push (git) directly to a remote that is named azure, and the cli is setting that up for you.

    But if you don't want to install the cli you can essentially just add the remote repo (your site) manually, like this:

    git remote add azure https://<site-or-appservice-name>.scm.azurewebsites.net/<site-or-appservice-name>.git

    As you would with every other git remote.

    0 讨论(0)
  • 2020-12-15 16:55

    You need to move your server.js file to your root app folder.

    0 讨论(0)
  • 2020-12-15 17:00

    I just tested that if you don't deploy your main node.js file as server.js you will get this error because the web.config is specifically looking for server.js as below:

      <handlers>
           <add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
     </handlers>
    

    To further troubleshot this issue you can access the website over FTP as described here.

    0 讨论(0)
提交回复
热议问题