【发布时间】:2021-11-03 12:40:21
【问题描述】:
创建了
.Net Core Web App
.Net Core web application 包含多个项目,但我部署了一个 API 项目。错误:HTTP ERROR 404 没有找到该网址的网页:http://....
BeanStalk 详细信息如上所示。
Amazon S3 详细信息如上所示。 我的疑问是,有一些权限问题或 URL 需要限定 完全用于 API 调用。
EC2 实例运行良好。
launchsettings.json
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:19095",
"sslPort": 44327
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DATABASE_NAME": "FYP",
"PROFILE_COLLECTION_NAME": "Profiles",
"MAIL_COLLECTION_NAME": "Mailes",
"INTERESTSENT_COLLECTION_NAME": "InterestSents",
"INTERESTRECIEVED_COLLECTION_NAME": "InterestRecieveds",
"SEEN_COLLECTION_NAME": "Seens",
"SHORTLIST_COLLECTION_NAME": "Shortlists",
"SKIP_COLLECTION_NAME": "Skips",
"CHATBOT_COLLECTION_NAME": "Chatbots",
"MEMBERSHIP_COLLECTION_NAME": "Memberships",
"NOTIFICATION_COLLECTION_NAME": "Notifications",
"SETTINGS_COLLECTION_NAME": "Settings",
"SUPPORT_COLLECTION_NAME": "Supports",
"USERACTION_COLLECTION_NAME": "UserActions",
"USERCHAT_COLLECTION_NAME": "UserChats",
"VERIFICATION_COLLECTION_NAME": "Verifications"
}
},
"Matrimony.Api": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DATABASE_NAME": "FYP",
"PROFILE_COLLECTION_NAME": "Profiles",
"MAIL_COLLECTION_NAME": "Mailes",
"INTERESTSENT_COLLECTION_NAME": "InterestSents",
"INTERESTRECIEVED_COLLECTION_NAME": "InterestRecieveds",
"SEEN_COLLECTION_NAME": "Seens",
"SHORTLIST_COLLECTION_NAME": "Shortlists",
"SKIP_COLLECTION_NAME": "Skips",
"CHATBOT_COLLECTION_NAME": "Chatbots",
"MEMBERSHIP_COLLECTION_NAME": "Memberships",
"NOTIFICATION_COLLECTION_NAME": "Notifications",
"SETTINGS_COLLECTION_NAME": "Settings",
"SUPPORT_COLLECTION_NAME": "Supports",
"USERACTION_COLLECTION_NAME": "UserActions",
"USERCHAT_COLLECTION_NAME": "UserChats",
"VERIFICATION_COLLECTION_NAME": "Verifications"
}
}
},
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://+:5001"
}
}
}
}
【问题讨论】:
标签: .net amazon-web-services amazon-elastic-beanstalk