简体   繁体   中英

Two Azure Cloud Services Single Domain

In IIS you can create an Application on a site so now I want to try and accomplish the same on Azure Cloud Service:

tenant.mysite.com - One Cloud Service
tenant.mysite.com/api - Another Cloud Service

The reason I want it done like this is cause this is a multi-tenant site and the api needs to be called with the tenants URL.

Is there any way out the box to do this with Azure? Am I looking at the whole solution wrong or do I have to look into doing a proxy of sorts?

I did host the application similar to what you have did. There are a few points that you will need to take care of 1. Overlapping sections of web.config file should be locked using <location path='.'.... > tags 2. Proper references for the dlls to be given

This is easily achieved in both the Azure websites and Azure Cloud Services. The link that explains how you can get started is given below. Post questions if you have tried this and run into some issues.

http://blogs.msdn.com/b/tomholl/archive/2014/09/22/deploying-multiple-virtual-directories-to-a-single-azure-website.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM