我已经发布了我的web应用程序从visual到AWS Bean秸秆,但是我无法访问我的应用程序,我得到的错误如下图所示。

AWS Bean秸秆配置如下:
  {
    "comment" : "This file is used to help set default values when using the dotnet CLI extension 
    Amazon.ElasticBeanstalk.Tools. For more information run \"dotnet eb --help\" from the project 
    root.",
   "profile" : "default",
   "region"  : "ca-central-1",
   "application" : "eBookCatalog",
  "environment" : "eBookCatalog-dev",
  "cname"       : "ebookcatalog-dev",
  "solution-stack" : "64bit Windows Server Core 2016 v2.6.0 running IIS 10.0",
  "environment-type" : "SingleInstance",
  "instance-profile" : "aws-elasticbeanstalk-ec2-role",
  "service-role"     : "aws-elasticbeanstalk-service-role",
  "health-check-url" : "/",
  "instance-type"    : "t2.micro",
  "key-pair"         : "eBookCatalog",
  "iis-website"      : "Default Web Site",
  "app-path"         : "/",
  "enable-xray"      : false
 }环境状况如下:

发布于 2020-11-27 00:11:49
这不是EB问题,而是您的应用程序。例如,如果您使用curl成功地检查了它,您将从您的Microsoft-IIS/10.0服务器获得响应。因此,连接可以像预期的那样工作。也许您的应用程序需要一个路径,ebookcatalog-dev.ca-central-1.elasticbeanstalk.com/api,或者它是通过其他非默认方式调用的。
curl -i ebookcatalog-dev.ca-central-1.elasticbeanstalk.com
HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NEThttps://stackoverflow.com/questions/65030605
复制相似问题