Reputation: 123
I would like to set up an Azure AppServices in azure. I have multiple apps that I want to run under the same domain and the url to be applied as such. mysite.com/app1, mysite.com/app2, etc. I know I can do this under IIS but I am wanting to use Azure AppServices instead of using a virtual server that I will have to manage.
Upvotes: 1
Views: 3776
Reputation: 18465
I have multiple apps that I want to run under the same domain and the url to be applied as such.
Per my understanding, you could configure multiple virtual directories and applications within a single Azure website. You could follow the steps below:
Set up the Virtual Directory or Application
Log into Azure Portal, choose your web app, click "SETTINGS > Application settings" and add the following configuration:
Deploy your application to Azure
You could use KUDU or other tools (e.g. FTP, etc.) for deploying your application.
Test:
Additionally, here is a tutorial about deploying multiple virtual directories to a single Azure Website, you could refer to it.
UPDATE:
I checked the Environment variables about APP_POOL_ID via kudu:
https://{your-appname}.scm.azurewebsites.net/Env.cshtml
and remote to my azure web app using IIS Manager, and found the following settings:
For adding your custom domain for your azure web app, you could refer to this tutorial.
Upvotes: 1
Reputation: 21
Add them in separate directories instead of root directories. When you add them in the root directories the app starts from mysite.com. But if you add them into different directories then it starts as mysite.com/dir1 and mysite.com/dir2
Upvotes: 0