IT Community - Software Programming, Web Development and Technical Support

How to create the virtual directories in IIS

This is a discussion on How to create the virtual directories in IIS within the ASP and ASP.NET Programming forums, part of the Web Development category; create the virtual directory Create Virtual Directories in IIS 4.0 1. Click “StartàRun -->type : inetmgr 2. Expand ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-15-2007, 10:01 PM
sathian sathian is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 252
sathian is on a distinguished road
Default How to create the virtual directories in IIS

create the virtual directory



Create Virtual Directories in IIS 4.0

1. Click “StartàRun -->type : inetmgr
2. Expand Internet Information Server.
3. Expand the server name.
4. In the left pane, right-click Default Web Site, point to New, and then click Virtual Directory.
5. In the first screen of the New Virtual Directory Wizard, type an alias, or name, for the virtual directory (SiteName), and then click Next.
6. In the second screen, click Browse. Locate the content folder that you created to hold the Web content. Click Next.
7. In the third screen, click to select Read and Run scripts (such as ASP). Make sure that the other check boxes are cleared. Click Finish to complete the wizard.

Thanks
Sathian
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2007, 11:21 PM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Cool Re: How to create the virtual directories in IIS

Procedures

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 /?.
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to backup in different directories? S.Vinothkumar Database Support 9 09-29-2007 12:34 AM
What are Virtual Functions? How to implement virtual functions in "C"? Sabari C and C++ Programming 4 09-10-2007 11:35 PM
virtual objects simplesabita Testing Tools 2 08-28-2007 06:40 AM
How can I create a virtual directory (or map virtual directory) for my website in TFS kingmaker ASP and ASP.NET Programming 1 07-27-2007 06:34 AM
How to get the directories and files in particular directory using VC++ Win32 applica mobilegeek C# Programming 1 07-25-2007 11:21 PM


All times are GMT -7. The time now is 07:07 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0