禁止您无权访问此服务器上的/. [英] Forbidden You don't have permission to access / on this server.

查看:1011
本文介绍了禁止您无权访问此服务器上的/.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我已经在azure上部署了python Django API.为了在azure上部署API,我使用Linux操作系统在azure上创建了一个Web应用程序.在azure上创建Web应用程序后,我克隆了存储库并使用CLI从我的PC推送代码.现在,当我从浏览器运行该应用程序时 我收到了此消息.

I have deploy python Django API on azure. To deploy an API on azure I created a web app on azure using linux operating system. After creating a web app on azure I clone the repo and push the code using CLI from my PC. Now when I run the app from the browser I got this message.

"被禁止
您无权访问此服务器上的/."

"Forbidden
You don't have permission to access / on this server."

为解决此错误,我从CLI尝试了此命令.

To solve this error I tried this command from CLI.

"az webapp配置集--python-version 3.7 --name虚拟--resource-group虚拟""

"az webapp config set --python-version 3.7 --name dummy --resource-group dummy"

我在研究此错误时在网上找到了此命令,他们指出我必须为此应用设置python版本.但这并没有帮助.甚至我也尝试从azure门户上的Web应用程序的应用程序设置中设置python版本,但这 也不起作用.请告诉我如何解决此错误.

I found this command on net while I was doing research about this error and they refer that I have to set python version for this app. But this did not help. Even I tried to set python version from application settings of web app on azure portal but that didn't work either. Please tell me how to solve this error.

推荐答案

在Azure App Service中启用Web应用程序的诊断日志记录,以获取有关该问题的详细错误日志,并查看该日志有助于解决该问题.

Try Enabling diagnostics logging for web apps in Azure App Service to get detailed error logs of the issue and see it helps to resolve it.

您可以使用

You can use Kudu console to look at your deployed files and determine if all the files are available.


这篇关于禁止您无权访问此服务器上的/.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆