Configuring Azure for hosting Kentico with multiple sites and domains

Apoorv Singh asked on July 15, 2020 17:12

I have some questions on hosting Kentico in Azure and was hoping the community might have some advice. We are building multiple sites in Kentico 12 with different custom domains. We currently have one site live which is hosted on an Azure app service. It is not clear to us how we should go about configuring Azure to meet our needs. Right now I have 2 main questions:

  1. Do we need more than 1 Azure app service when hosting multiple domains on a single Kentico installation?
  2. How do we properly route traffic from different domains to the appropriate Kentico site?

Any help would be appreciated.

Correct Answer

David te Kloese answered on July 15, 2020 21:23

You can host multiple sites with different URLS in the same app service. Just register the DNS records in your Azure portal for the web app.

Image Text

In Kentico admin interface make sure there is a Site configured that has that same URL as a domain or alias.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on July 16, 2020 19:30

Assuming you're using Portal Engine, what David suggested will work perfectly.

If you're using MVC, then you'll have an app service with multiple apps deployed. One for Kentico Admin (with several custom domains) and one for each site you deploy in MVC. They can all use the same App Service but you'll need to make sure you app service is properly scaled to handle the traffic.

0 votesVote for this answer Mark as a Correct answer

Apoorv Singh answered on July 16, 2020 19:38

Thank you all for the response. We are using MVC and have 1 app service for the Admin and 1 for the live site. I am following David's approach and I noticed that I don't have the option for a Presentation URL in our new site so I am currently investigating that.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 16, 2020 19:41

If you don't have the "Presentation URL" property on the site, then the site wasn't created as an MVC site. You may want to double-check that before you get too far so things properly work later on.

0 votesVote for this answer Mark as a Correct answer

Apoorv Singh answered on July 16, 2020 19:44

I see, I am fairly new to my organization and am still reading up on Kentico. Is there an easy way to verify which development option was picked during install. I'm asking because the other site we had previously setup in the same installation has a Presentation URL field.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 16, 2020 19:47

If that Presentation URL field isn't there, then it's not set up as an MVC site. That's the easiest way to verify it. I'd suggest deleting that site and starting over.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.