如何设置IIS 7上托管的应用程序的虚拟路径 [英] How to set virtual path of my application hosted on IIS 7

查看:75
本文介绍了如何设置IIS 7上托管的应用程序的虚拟路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!!!

我已经在IIS 7上托管了一个应用程序.由于该应用程序的名称太长,我想为该应用程序设置虚拟路径.

我在Google上找到了一些有关设置它的文章.他们告诉我创建一个虚拟目录,但是我确实创建了,但是虚拟路径仍然保持不变.请告诉我我在这里错了吗?

Hello!!!

I have hosted an application on IIS 7. As the application''s Name is vary lengthy ,i want to set a virtual path for the application.

I found some article''s on google about setting it. They told me to create a virtual directory and i did but still the virtual path remains same. Please tell me what wrong i am doing here ??

推荐答案

通过在开始"菜单或运行"中键入inetmgr来打开IIS管理器.
在IIS管理器的左侧导航上,单击站点".

右键单击要添加虚拟路径的站点,然后选择添加虚拟目录".

在别名"字段中输入应用程序/网站的简称".并将确切的应用程序物理路径放在物理路径"文本框中.

如果要用户使用授权连接网站,请单击连接为",然后键入用户名和密码".然后点击确定,

您已经设置了虚拟目录.

请记住,虚拟路径将由IIS而非文件系统使用.当您使用 http://localhost/AliasName 浏览网站时,可以访问虚拟路径,但如果尝试访问C:\ inetpub \ wwwroot \ AliasName,则该路径将不可用.
Open IIS Manager by Typing inetmgr on Start Menu or Run.

Click On Sites on the Left navigation of IIS Manager.

Right Click on Site where you want to Add Virtual Path and Choose Add Virtual Directory.

Put the Short Name of Application/Website in Alias Field. and Put the Exact Physical Path of Application in Physical Path Textbox.

If you want user to Connect website with Authorization, Click on Connect As and Type Username and Password. and then Click on OK,

You have set Virtual Directory.

Remember Virtual Path will be Used by IIS not by File System. When you will browse website using http://localhost/AliasName, you can access Virtual Path but if you tried to Access, C:\inetpub\wwwroot\AliasName it will not be available there.


这篇关于如何设置IIS 7上托管的应用程序的虚拟路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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