Creating a virtual directory

If you need to install Kentico CMS manully on a remote server or restored it from backup and, at the same tim, you run Kentico CMS in a sub-folder (in contrast to running Kentico CMS in the root of the web site), you need to create a new virtual directory for the folder where you have the web project files.

 

 

 

Application root

 

The root of the web site or the virtual directory must be the same as the folder that contains the web.config file of Kentico CMS. This folder is called application root.

 

Follow these steps to create and configure a virtual directory on your web server:

 

Configuring a Virtual Directory

 

On Windows Server 2000/2003, open Start -> Administrative Tools -> Internet Information Services (IIS) Manager. Right-click Computer -> Web Sites -> chosen web site and choose New -> Virtual Directory.

 

On Windows XP, open Start -> Control Panel -> Administrative Tools -> Internet Information Services.Right-click the Computer -> Web Sites -> Default Web Site item (or other web site if you're running multiple web sites on the same computer) and choose New -> Virtual Directory....

 

The rest is same for all operating systems:

1.The Virtual Directory Creation Wizard appears. Click Next on the first screen.
2.Enter the Virtual Directory Alias. If you want the web site to run as http://localhost/KenticoCMSDemo, you need to enter alias KenticoCMSDemo. Click Next.
clip0293
3.Now choose the disk folder on your machine where the Kentico CMS web project files are placed. Please note that you cannot use a remote (shared) disk. The web project files are NOT the files in the C:\Program Files folder - you need to create the web project using the Kentico CMS Web Installer first - see chapter Web Installer for details. Enter the directory path and click Next.
clip0294
4.Now you need to specify the access permissions for the new virtual directory. You need to choose at least Read and Run scripts and it's recommended that you do NOT allow any other options. Click Next and click Finish.
clip0295
5.Right-click the newly created virtual directory and choose Properties. Choose the Documents tab and make sure the Enable Default Document box is checked and the list contains the Default.aspx file.
clip0296
6.Choose the ASP.NET tab and make sure the ASP.NET version is 2.0.50727 (the last number may be different). If you cannot see the ASP.NET tab, you may not have ASP.NET 2.0 installed or registered correctly.
7.Choose the Directory Security tab, click Edit in the Anonymous access and authentication control section and make sure that both Anonymous access and Integrated Windows authentication are chosen.
clip0297
8.Click OK on all dialogs to save the changes.