---
title: Creating a new MVC site
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** This page is a part of a tutorial, which you should follow sequentially, from the beginning to the end. [Go to the first page: Getting started with Kentico](https://docs.kentico.com/k11tutorial/getting-started-with-kentico.md).

## You will learn about:

When you want to begin developing a website in Kentico using the MVC framework, you need to create a content only site that will serve as a repository for your content. For that purpose, Kentico provides you with an **MVC Blank Site** template.

> **Info:** Using the **MVC Blank Site** ensures that your new site is marked as "content only" in the system. This is necessary for the site to work properly with the connected MVC application, which you will learn about in the next step.

## Creating the site

For this tutorial, install new MVC blank site:

1. In the Kentico administration interface, open the **Sites** application.

   ![Opening the Sites application](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/open_sites_app.png "Opening the Sites application")
2. Click **New site wizard**. 

   ![Starting the New site wizard](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/click_new_site_wizard.png "Starting the New site wizard")
3. Select **Use web template**and click **Next**.
4. In Step 2, scroll down the list of templates and select the **MVC Blank Site** in the wizard and click **Next**.

   ![Selecting the new site's web template](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/new_mvc_site_wizard.png "Selecting the new site's web template")
5. Type the details for the new website: 

   - **Site display name**: MEDIO clinic MVC
   - **Site code name**: MEDIOClinicMVC
   - **Domain name**: _do not change the value in this field_

     ![Entering the basic properties on the new MVC site](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/new_mvc_site_settings.png "Entering the basic properties on the new MVC site")
6. Click **Next**.
7. In Step 4, do not change anything and click **Next**.
   - This step allows you to select the objects which the system imports to the new site.

     ![Object selection step of the new site wizard (step 4)](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/mvc_object_selection.png "Object selection step of the new site wizard (step 4)")
8. If you meet the following warning in **Step 5**, click **Next.**
   - _Warning: Failed to start site 'MEDIO clinic MVC', there is already a site running under this domain alias. You first need to stop the existing site and then start the new site manually._
   - Two sites cannot run under one domain simultaneously. For this tutorial, we will stop the previously installed site (usually Dancing Goat site) after we have finished creating the site.

     ![Warning about multiple sites running on the same domain](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/warning_failed_to_start_mvc_site.png "Warning about multiple sites running on the same domain")
9. In Step 6, click **Finish**.

The system creates the new blank MVC website and displays it in the **Sites** application.

If you have previously installed a different site, stop it now, so that you can run the new one:

1. **Stop** () the website which is running on the domain that you want to use (_localhost_ in our case).
2. **Run** () the _MEDIO clinic MVC_ website.
3. Refresh your browser to load the _MEDIO clinic MVC_.

![Starting new mvc site](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/starting_new_mvc_site.png)

> **Info:** **Running more websites simultaneously**
>
> If you want to run more websites simultaneously, you need to set different domain names for them. See [Setting up multiple websites](https://docs.kentico.com/k11/configuring-kentico/managing-sites/setting-up-multiple-websites.md) for more information.

## Setting the presentation URL

As the next step, you need to define a URL for your content only site. This will help your content editors to access the live site directly from the **Pages** application, create hyperlinks in the [text editor](https://docs.kentico.com/k11/managing-website-content/working-with-pages/editing-pages/using-the-editor.md) or use the **Preview** feature to examine what the content on their page will look like on the live site.

1. **Edit** () the _MEDIO clinic MVC_ website.
2. On the **General** tab, set the **Presentation** **URL** to: _http://localhost/MedioMVC_

   ![Mvc presentation url](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/mvc_presentation_url.png)
3. Click **Save**.

The MVC application will use the _http://localhost/MedioMVC_ URL to display content that the website editors will manage through the Kentico user interface.

## Setting up web farm synchronization

Because your MVC website and Kentico instance run as separate applications with a shared database, you need to set up web farm synchronization.

1. Go to the **Settings** application.
2. Navigate to **Versioning & Synchronization** -> **Web farm**.
3. Set the **Web farm mode** to **Automatic**.

   ![Setting up the web farm mode for content synchronization](https://docs.kentico.com/docsassets/k11tutorial/creating-a-new-mvc-site/mvc_setting_web_farms_mode_automatic.png "Setting up the web farm mode for content synchronization")
4. Click the **Save** button.

Automatic web farm mode creates web farm servers for both the Kentico administration application and the connected MVC application. When a website editor or administrator makes changes to the site content or settings in Kentico, the web farm synchronization ensures that the connected MVC application correctly reflects these changes.

Your content only site and your Kentico instance are set up to be used with an MVC application. 

**Previous page:** [MVC development](https://docs.kentico.com/k11tutorial/mvc-development.md) — **Next page:** [Creating a new MVC application](https://docs.kentico.com/k11tutorial/mvc-development/creating-a-new-mvc-application.md)

**Completed pages:** 2 of 10

Ο**Ο**ΟΟOΟΟΟΟΟ
