您的位置:首页 > 其它

理解什么是 IIS 中的Virtual Directory

2008-10-09 09:54 211 查看
They're sometimes mistakenly called virtual directories, which is a huge pet peeve of mine. Did you click "New Virtual Directory" or the application "Create" button?
A true "virtual directory" means that the content is not actually physically located under the web root path - it's somewhere else and is mapped so it's accesible via HTTP. For example, let's say you have the default web root at C:/inetpub/wwwroot, and some Office files located at D:/files. If you wanted to make these available, you could create a virtual directory named "office" and map it to D:/files. Your users could then go to http://servername/office and browse those files - note that C:/inetpub/wwwroot/office does not exist. This is a virtual directory, and has nothiing to do with application settings.



-Tom
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: