Kentico 12 MVC IIS/Admin question

jeff McDaniel asked on January 24, 2019 00:03

Hey Everyone,

We are moving over to Kentico 12 and I have some pretty basic questions. Sorry if this seems super obivous, I'm just very new and trying to learn about the platform. I'm going through the tutorial and have made the admin redirect, and I noticed something about having two IIS installations.

In total I have two sites, the dancing goat example and a blank site I'm trying to build the ground up copying the dancing goat example. These are all on the same DB installation and use the same IIS folder.

I have two IIS sites for each site, totaling 4 IIS sites, and 2 sites inside Kentico.

admindg.mysite.com -> admin interface for Dancing goat dg.mysite.com -> Actual dancing goat site amdmin.mysite.com -> admin interface for test site testsite.mysite.com -> Actual test site (blank)

Is it possible to only use 1 admin interface for each of the sites?For example, can I just use admin.mysite.com and edit pages on both the test site and the Dancing Goat site, or do you need an admin site to match every MVC site?

What should the presentation URL/site domain name be for each of these sites in the Kentico Sites through the administration application?

Currently I have the site Presentation URL and domain name set to the URL I want my site to run under, while using a domain alias to ensure that the admin page can get there.

Thanks for the help!

Recent Answers


Juraj Ondrus answered on January 24, 2019 09:42

Hi,
In fact there is still one admin user interface - you are just accessing it under different domains. The domains have to be different - since then Kentico will not know what web site you want to edit. So, you can have it as you have it now - using different subdomains or, another option is to use virtual directories, for example mysite.com/DancingGoat and mysite.com/TestSite for the admin interface.

0 votesVote for this answer Mark as a Correct answer

jeff McDaniel answered on January 24, 2019 23:37 (last edited on January 24, 2019 23:37)

Thanks Juraj,

They would have to have separate domain names. For example if I had testsite1.com and testsite2.com they would be both using different MVS site directories under the Kentico12 folder in inetpub.

So in that case is the best way to go using separate IIS sites?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on July 8, 2019 08:10

Well, when using one domain for the admin, how the system should figure out what site to load e.g. in the Pages application? There are also several other places where site related data are loaded - and this is distinguished by the current domain name. So, the recommendation is to use separate domain names for Admin UI for separate sites. Then, when it comes to the IIS setup, maybe this article will give you some more ideas.

0 votesVote for this answer Mark as a Correct answer

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