一台计算机上的 IIS 后面的 Web 服务器无法访问另一台计算机上的文件?
需要完成哪些权限或设置或步骤,以便一台计算机上 IIS 后面的 Web 应用程序能够访问另一台计算机上的文件/目录。
What all permissions or setting Or steps need to be done so that Web application behind IIS on one machine is able to access the files/directory on the other machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IIS 中的应用程序池具有运行相关网站的身份(用户)。此身份需要访问另一台计算机上的文件。使用的身份通常是 NT Authority\Network Service。所以这基本上是需要访问文件的帐户。当在另一台计算机上引用时,名为
ComputerA
的计算机的网络服务帐户称为ComputerA$
。因此,在您的文件服务器上,您需要确保ComputerA$
(或您的同等服务器)有权访问这些文件。An application pool in IIS has an identity (user) that runs the web site in question. This identity needs access to the files on the other machine. The identity used is often NT Authority\Network Service. So this is basically the account that needs access to the files. The Network Service account of a computer called
ComputerA
is calledComputerA$
when referenced on another computer. So on your file server you need to make sure thatComputerA$
(or your equivalent) has access to the files.