简体   繁体   English

Azure Linux web 应用程序,通过 ZC728A49363C9A93A5A43A7E7F23 文件部署

[英]Azure Linux web app, deployed via FTP, files give 404

I have a Azure Linux web app.我有一个 Azure Linux web 应用程序。 I can upload files via FTP (for example test.html) but then accessing them ( https://mysite.azurewebsites.net/test.html ) gives a 404. The files are there, and I can see them in kudu console, but I get 404? I can upload files via FTP (for example test.html) but then accessing them ( https://mysite.azurewebsites.net/test.html ) gives a 404. The files are there, and I can see them in kudu console,但我得到404? I even deleted the "hostingstart" file yet going to https://mysite.azurewebsites.net still returns the hostingstart file content?我什至删除了“hostingstart”文件但转到https://mysite.azurewebsites.net仍然返回 hostingstart 文件内容? Do I need to trigger a "redeploy" somehow?我是否需要以某种方式触发“重新部署”? The documentation I have read just says "upload the files via ftp to /home/site/wwwroot which is what I have done.我读过的文档只是说“通过 ftp 将文件上传到 /home/site/wwwroot 这就是我所做的。

??? ???

I turned on all logging, but was getting nothing meaningful.我打开了所有日志记录,但没有任何意义。 I raised a support ticket and got a response that explains it.我提出了一张支持票并得到了解释它的回复。 A.Net platform on Linux cannot serve static content; Linux 上的 A.Net 平台无法提供 static 内容;

response from Microsoft:来自微软的回应:

Analysis:分析:

http://mysite.azurewebsites.net/ http://mysite.azurewebsites.net/

Is a Linux web app with the custom image是带有自定义图像的 Linux web 应用程序

DOTNETCORE|3.1 Hosted inside a B1 App Service Plan DOTNETCORE|3.1 托管在 B1 应用服务计划中

The requests are served by a single Small web worker.这些请求由单个 Small web 工作人员提供服务。

This type of web app expects.Net Core content not plain HTML.这种类型的 web 应用程序需要.Net Core 内容不是普通的 HTML。 If you want to deploy plain HTML you can use a Windows web app or a Linux web app with PHP, as on a Windows web app there is IIS and on PHP there is Apache as web servers that by default are able to serve static content also. If you want to deploy plain HTML you can use a Windows web app or a Linux web app with PHP, as on a Windows web app there is IIS and on PHP there is Apache as web servers that by default are able to serve static content also .

for static content you can also use only your storage to deploy.对于 static 内容,您也可以仅使用您的存储进行部署。

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过Azure Devops将Docker镜像部署到Linux上的Web应用程序失败 - Deploying docker image to web app on Linux via Azure Devops fails 每秒通过Linux将文件从FTP移到本地 - Moving Files from FTP to Local via linux every second Linux 上 Azure Web 应用上的磁盘空间不足 - Disk out of space on Azure Web app on Linux Linux 上的 Azure Web 应用程序 - 服务器修补 - Azure Web App on Linux - server patching 如何在Azure Linux Web应用程序上托管Angular - How to host an angular on Azure linux web app Linux上的Azure Web App出现502代理错误 - Azure Web App on Linux with 502 proxy error 将 .net core 3.1 Web 应用部署到 Azure Linux 应用服务 - Deploying .net core 3.1 web app to Azure Linux App Service SQL 连接来自 Azure Linux 应用服务 Z2567A5EC9705EB7AC2C98409DZE0 - SQL Connection from Azure Linux App Service web app 如何通过ftp连接获取比Linux命令行(bash)中指定的文本字母数字大的文件列表? - How to get list of files alphanumerically greater than text specified in Linux command line (bash) via ftp connection? 在Web应用程序中,给日志文件添加“ .txt”后缀是否明智? - In a web app, is it wise to give log files “.txt” suffix?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM