Multi Domain Kentico MVC, error in admin

George Tselios asked on February 3, 2020 11:52

Dear sirs,

We are developing a multi domain solution using Kentico v12.0.51 MVC. In more detail, we have set up our three different domains as three separate Kentico sites. (In our development environment the domain names are dev.domain1.com, dev.domain2.com and dev.domain3.com). In IIS we have a single web application / single application pool targeting the MVC application folder and setup the three domain names as different bindings.Everything works fine as far as the three web sites are concerned.

The problem we are facing relates to the setup of the administration platform (Kentico admin). We have chosen to setup the Kentico admin as a separate web site is IIS. This is our preferable solution because in the production environment the admin tool may be located in a separate server behind a firewall. In order to achieve this we introduced a new domain name: dev-cms.domain1.com and in Kentico we have set it up as an alias of the first domain (dev.domain1.com). In IIS we created a new web site and added this domain name as a binding. Now we may access the admin tool with the url: dev-cms.domain1.com. The problem is that each time we select a (Kentico) site that we need to manage from the drop down list on the top left in Kentico admin, if we navigate to a domain other that the domain1.com, we get a 404 page. The requested by the admin page has a url like: [domain]/admin, where domain is dev.domain2.com or dev.domain3.com depending on the selected Kentico site.

Please provide us with a solution to this problem.

Thanks in advance,

George

Correct Answer

David te Kloese answered on February 4, 2020 10:11

Correct the domain you set is for the admin, and Kentico will use the Presentation URL for live site generation. Generated links should use the presentation url!

When using MVC you'll get the webfarm version with the license. Just shoot a message to support or your contact. So you have bought licenses for domain1, domain2 and domain3 and get cms.domain1/2/3 for admin...

0 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on February 3, 2020 12:09 (last edited on February 3, 2020 12:10)

Each site should have configuration for it's own admin and live site URL.

Looking at what you described you need 6 urls in Kentico

first1

  • dev.domain1.com
  • dev-cms.domain1.com

2nd combi

  • dev.domain2.com
  • dev-cms.domain2.com

3rd site:

  • dev.domain3.com
  • dev-cms.domain3.com

and use these fields on each site: Image Text

3 votesVote for this answer Mark as a Correct answer

George Tselios answered on February 3, 2020 19:56

Dear David,

Thank you very much for your prompt answer.

I have one more question: for the other two admin tool domains that we need to create in Kentico, do we have to also set them as aliases of the related web site domains? E.g. for the dev.domain2.com after we create the dev-cms.domain2.com we have to set it up as an alias of the dev.domain2.com?

Thanks in advance,

George

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 3, 2020 20:02

Hi, no domain alias is only used for an additional live site url. Can be secondary domain like website.com and website.org. but also something completely different.

Note that what you define as the presentation url is used in the preview window of the pages application inside the cms.

0 votesVote for this answer Mark as a Correct answer

George Tselios answered on February 4, 2020 09:56

Hi David,

So if I understand correctly I need to set the "Site Domain Name" to the domain of the corresponding admin tool and the "Presentation Url" to the domain of the actual portal?

Won't this affect the creation of page urls?

Also, I believe I need to register the licenses of the other two admin tool domains, right?

Thanks in advance,

George

0 votesVote for this answer Mark as a Correct answer

George Tselios answered on February 4, 2020 10:16

Hi David,

Thank you for the clarifications.

Regards,

George

0 votesVote for this answer Mark as a Correct answer

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