在同一个Azure Web App下运行两个不同的ASP.NET 5应用程序 [英] Run two different ASP.NET 5 applications under the same Azure Web App

查看:95
本文介绍了在同一个Azure Web App下运行两个不同的ASP.NET 5应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了这个问题: 将WebAPI和MVC项目发布到同一Azure网站吗?/a>

I have had a look at this question: Publish WebAPI and MVC projects to same Azure Web Site?

但是对于辅助"应用程序,它不能正常工作.

but it doesn not work properly for the "secondary" application.

然后,我了解了Azure Web应用程序服务(以前称为Azure网站)中的虚拟目录.

and from that I learned about virtual directories in Azure web app services ( previously called Azure websites).

我正在尝试将2个Web应用程序部署到相同的Azure Web应用程序中.两者都是在名为MyOAuth的解决方案下的ASP.NET 5应用程序(它们将是MVC 6):

I am trying to deploy into the same Azure web apps 2 web applications. Both are ASP.NET 5 applications (they will be MVC 6) under a solution called MyOAuth:

  • MyApi:应该可以通过 myoauth.azurewebsites.com
  • 访问的ASP.NET 5应用程序
  • MyAuth:应通过 myoauth.azurewebsites.com/oauth
  • 访问的ASP.NET 5应用程序
  • MyApi: ASP.NET 5 application that should be accessible through myoauth.azurewebsites.com
  • MyAuth: ASP.NET 5 application that should be accessible through myoauth.azurewebsites.com/oauth
Solution 'MyOAuth'
  |-src
     |- MyApi
     |- MyAuth

因此,在我创建的Azure Web App服务(也称为 MyOAuth )中,在设置下,我具有以下虚拟应用程序和目录:

So in the Azure Web App service that I have created (called also MyOAuth), under settings I have the following Virtual Applications and Directories:

/        site\wwwroot         Application
/oauth   site\wwwroot\oauth   Application

Visual Studio 2015的发布连接都为:

The Publish connection from Visual Studio 2015 for both of them are:

  • MyApi
Server: myoauth.scm.azurewebsites.net:443
Site Name: MyOAuth
User Name: *****
Password: ****
Destination URL: http://myoauth.azurewebsites.net

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