How do you create Virtual Root in IIS

Showing Answers 1 - 2 of 2 Answers

kalpit bhatt

  • May 25th, 2006
 

To create a virtual directory by using IIS Manager

1.

In IIS Manager, expand the local computer, expand the Web Sites or FTP Sites folder, right-click the site or folder within which you want to create the virtual directory, point to New, and then click Virtual Directory. The Virtual Directory Creation Wizard appears.

2.

Click Next.

3.

In the Alias box, type a name for the virtual directory. (Choose a short name that is easy to type because the user types this name.)

4.

Click Next.

5.

In the Path box, type or browse to the physical directory in which the virtual directory resides, and then click Next.

6.

Under Allow the following permissions, select the check boxes for the access permissions you want to assign to your users, and then click Next.

  Important

For security reasons, when selecting access permissions, consider allowing only the default Read permission. By restricting permissions in this way, you can help avoid attacks against your Web site by malicious users. For more information about setting access permissions, see Securing Virtual Directories and Access Control in Help and Support Center for Windows Server 2003.

7.

Click Finish. The virtual directory is created below the currently selected folder level.

To create a virtual directory by using Windows Explorer

1.

Open Windows Explorer.

2.

Right-click the folder you want to be a virtual directory, and click Sharing and Security.

3.

Click the Web Sharing tab.

4.

Click Share this folder.

5.

In the Alias box, type the name for the virtual directory.

6.

Click OK twice.

To create a Web virtual directory by using the Iisvdir.vbs script

1.

From the Start menu, click Run.

2.

In the Open box, type cmd, and then click OK.

3.

At the command prompt, type the following:

cscript %SystemRoot%\system32\iisvdir.vbs /create SampleWebSite[/Path] VirtualDirectorydrive:\path

where SampleWebSite, VirtualDirectory, and path is the physical directory, as appropriate.

For more information about creating Web virtual directories by using the Iisvdir.vbs command and its parameters, type the following at the command prompt: iisvdir /create /?.

To create an FTP virtual directory by using the Iisftpdr.vbs script

1.

From the Start menu, click Run.

2.

In the Open box, type cmd, and then click OK.

3.

At the command prompt, type the following:

cscript %SystemRoot%\system32\iisftpdr.vbs /create FTPSite[/Path] VirtualDirectory drive:\path

where FTPSite, VirtualDirectory, and path is the physical directory, as appropriate.

For more information about creating FTP virtual directories by using the Iisftpdr.vbs command and its parameters, type the following at the command prompt: iisftpdr /create /?.

  Was this answer useful?  Yes

digross1

  • Nov 3rd, 2008
 

To mark an existing virtual directory in InetpubWwwroot as a Web application using IIS

  1. Open IIS Manager and browse to the Default Web Site as shown in the previous procedures.

  2. Expand the Default Web Site node and look for the subdirectory that you want to designate as an application root. For this example, this is exampleWebApp.

    If IIS Manager was already open when you created the physical directory, you might have to click the Refresh button in IIS Manager to view your new exampleWebApp subdirectory.

  3. Right-click the directory that you want to mark as an application root, and then click Properties.

  4. On the Directory tab, in the Application Settings section, click Create.

  5. In the Application name text box, type the name of the application, and then click OK.

    The virtual directory is now an application root.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions