如何更正显示为相对路径的IIS本地路径 [英] How to correct an IIS Local Path that appears as a Relative Path

查看:255
本文介绍了如何更正显示为相对路径的IIS本地路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个测试网站并放入IIS.
在IIS中,网站测试"用于将其本地路径显示为"c:\ inetpub \ wwwroot \ Test". -但现在显示为"\ Test".该字段显示为灰色,并且不显示浏览"按钮.无法通过对话框更改此方法.

如何更正此探针?

I have developed a test website and put in IIS.
In IIS the website "Test" used to show its local path as "c:\inetpub\wwwroot\Test". - but now shows as "\Test".  The field is greyed out, and the Browse button does not display.  There is no way to change this through the dialog.

How to correct this probem?

推荐答案

您好,

据我了解,您已将测试应用复制到wwwroot文件夹中.这样,IIS会将其视为默认网站文件夹上的目录.

如果您希望将测试应用视为网站,并希望更改测试"的位置,网站,请按照以下步骤操作.

1.在IIS中创建虚拟文件夹.
->右键单击"默认网站"选择"新建"并且您会看到"虚拟目录"菜单项.
2.向导将打开;点击下一步.
3.它将要求别名,在您的测试网站上给假人名称.例如" TestWebApp"
4.它将要求找到网站目录.现在,您可以在此处更改/设置网站的位置.
5.单击下一步"并完成向导.

现在,您可以通过选择网站并对其进行正确的单击来在IIS中打开您的测试网站属性.

您应该看到位置是

此致,
Nilesh S
[请记住单击标记为已回答"当您正确回答问题时]
Hi,

As per my understanding you have copied your test app into the wwwroot folder. By doing so IIS treats that as directory over default websites folder.

If you wish to treat your test app as web site and wish to change the location of "Test" website then please follow steps given below.

1. Create a virtual Folder in IIS.
    -> right click "Default Web Site" select "New" and you could see "Virtual Directory" menu item there.
2. Wizard will open; click Next.
3. It will ask for alias, GIVE HERE DUMMY NAME FOR YOUR TEST WEB SITE. e.g. "TestWebApp"
4. It will ask to locate the website CONTENTS. NOW HERE YOU MAY CHANGE/SET THE LOCATION OF YOUR WEB SITE.
5. Click Next and Finish the wizard.

NOW YOU MAY OPEN YOUR TEST WEBSITE PROPERTIES IN THE IIS BY SELECTING THE WEBSITE AND RIGHT CLICKING ON IT.

you should see the location is editable this time.

Regards,
Nilesh S
[Remember to click "mark as answered" when you get a correct reply to your question]


这篇关于如何更正显示为相对路径的IIS本地路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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