如何在iis 7中创建虚拟目录? [英] How to create a virtual directory in iis 7?

查看:128
本文介绍了如何在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[^]


这篇关于如何在iis 7中创建虚拟目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆