[英]Azure websites 404 index.html
我试图在Azure网站上运行我的应用程序,但是我无法使index.html
正常工作。
该应用程序存在于2个项目中:
在我的构建定义中,我将客户端和Api的结果复制到$(Build.ArtifactStagingDirectory)
,然后发布
到目前为止,到目前为止,我可以在我的网站的wwwroot
中看到来自客户端的文件(通过kudu控制台)
但是当我导航到index.html
,我得到了404 。 但是转到/api/...
链接只是按预期工作
所以我在想问题是我的web.config
覆盖了导航到index.html文件的可能性。
web.config
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\Portal4Fun.Api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.