如何在iis 7中创建虚拟目录?

问题描述:

您好我正在按照以下步骤创建虚拟目录:



在IIS 7.0或7.5中创建虚拟目录



1:从开始菜单中,单击运行,然后键入inetmgr以打开Internet信息服务(IIS)MMC管理单元。



2:在左窗格中,展开具有计算机名称的节点,然后展开站点节点。

右键单击默认网站,然后选择添加应用程序以打开添加应用程序窗口。

在窗口中,键入servicemodelsamples作为您正在创建的虚拟目录的别名。



3:创建以下目录:%SystemDrive%\inetpub\wwwroot \ servicemodelsamples

将物理路径设置为%SystemDrive%\inetpub \wwwroot \ servicemodelsamples。



4:点击确定。





但是在通过IIS浏览我的应用程序时,它给出了该目录中所有文件的列表。

当我点击该文件导航我的默认页面时,那时它给了我

错误找不到404文件





提前致谢。

Hi I am creating a virtual directory, by following steps,

To create a virtual directory in IIS 7.0 or 7.5

1:From the Start menu, click Run, then type inetmgr to open the Internet Information Services (IIS) MMC snap-in.

2:In the left pane, expand the node with the computer''s name, and then expand the Sites node.
Right-click Default Web Site, and then select Add Application to open the Add Application window.
In the window, type servicemodelsamples as the alias for the virtual directory that you are creating.

3:Create the following directory: %SystemDrive%\inetpub\wwwroot\servicemodelsamples
Set the physical path to %SystemDrive%\inetpub\wwwroot\servicemodelsamples.

4:Click OK.


But while browsing my application via IIS.It gives me list of all files in that dirctory.
While I am clicking on that file for navigating my default page, then at that time it gives me
an error "404 file not found"


Thanks in advance.

查看以下链接





http://msdn.microsoft.com/en-us/ library / ms751432.aspx [ ^ ]





http://forums.asp.net/t/1700434.aspx/1 [ ^ ]





http://www.iis.net/configreference/system.applicationhost/sites/site/application/virtualdirectory [ ^ ]
See the below link


http://msdn.microsoft.com/en-us/library/ms751432.aspx[^]


http://forums.asp.net/t/1700434.aspx/1[^]


http://www.iis.net/configreference/system.applicationhost/sites/site/application/virtualdirectory[^]