简体   繁体   English

在IIS7上设置虚拟目录

[英]Setting up a virtual directory on IIS7

I'm setting up our server so we can install an ASP.Net web application on it. 我正在设置服务器,以便我们可以在其上安装ASP.Net Web应用程序。

I right clicked Sites in the IIS7 Manager and selected Add Virtual Directory and I clicked the Test Settings button, this messages is displayed: 我右键单击IIS7管理器中的“站点”,然后选择“添加虚拟目录”,然后单击“测试设置”按钮,显示以下消息:

The server is configured to use pass-through authentication with a built-in 
account to access the specified physical path. However, IIS Manager cannot 
verify whether the built-in account has access. Make sure that the application 
pool identity has Read access to the physical path. If this server is joined to 
a domain, and the application pool identity is NetworkService or LocalSystem, 
verify that <domain>\<computer_name>$ has Read access to the physical path. 
Then test these settings again.

The message does not tell us how to do any of these things. 该消息没有告诉我们如何执行任何这些操作。

The server I'm setting up has Windows7 Home Premium installed on it. 我正在设置的服务器上已安装Windows7 Home Premium。 The computer is set up with all defaults set and has a computer name such as MyComputer-PC (not the real name). 该计算机设置了所有默认设置,并且具有计算机名称,例如MyComputer-PC(不是真实名称)。 There is no domain set up. 没有设置域。

Can you tell us how to do what is described in the message? 您能告诉我们如何执行邮件中描述的操作吗?

1) Go to IIS, click on the IIS entry that holds your virtual directory. 1)转到IIS,单击包含您的虚拟目录的IIS条目。 On the right click on Basic Setting to see which appliatino pool it's using. 在右侧的“基本设置”上单击以查看其正在使用的设备池。

2) Go to IIS, go to application Pools. 2)转到IIS,转到应用程序池。 Right click on your application pool and check the advance setting -> Identity property to find out which user it's using. 右键单击您的应用程序池,然后检查高级设置-> Identity属性,以找出正在使用的用户。

3) Go to the folder that your IIS Entry maps to, make sure that user is added to this directory. 3)转到IIS条目映射到的文件夹,确保将用户添加到此目录。 If you want to give it write permission, give it write. 如果要授予其写权限,请给它写权限。 Otherwise, make give it read & execute is fine. 否则,使其读并执行即可。

The message is pretty clear in what needs to be done. 信息很清楚,说明需要做什么。 Go to the Application Pool section of IIS and open the advanced settings of the default Application pool. 转到IIS的“应用程序池”部分,然后打开默认应用程序池的高级设置。 Check what username is specified in the Identity property. 检查在Identity属性中指定的用户名。

Go to the location where you are physically storing your virtual directory and go to the folder properties -> Security. 转到您实际存储虚拟目录的位置,然后转到文件夹属性->安全性。 Ensure that the user has the appropriate access. 确保用户具有适当的访问权限。

Basically, you can ignore this message if you don't plan to write files to your site directory. 基本上,如果您不打算将文件写入站点目录,则可以忽略此消息。

This message means that IIS can't check if it's system windows account has enough permissions on your site folder. 此消息表示IIS无法检查它的系统Windows帐户是否对您的站点文件夹具有足够的权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM