Using Virtual Directories With Microsoft® Internet Information Server, administrators can distribute the files that make up their Web site across volumes of the server and even to other computers in the organization because IIS makes it possible to generate a "virtual tree" of Web aliases built from local or network directories. When HTTP, FTP, or Gopher requests are submitted to the server, it fetches files from local or network locations based on the virtual tree configuration. This mechanism makes it easy to "stage" new Web content for testing over the server without having to copy files back and forth. When a new version of content is ready, the administrator need only change an internal path name, and all future requests for content with a particular name will be satisfied against the new files. An additional benefit of using virtual directories is that it allows servers with WWW, FTP, and Gopher content to be isolated from the Internet--the Internet Information Server fetches and serves documents securely using Windows NT file-sharing while exposing other computers in the local area network to low risk of compromise by outside intruders. Virtual directories are configured from the Microsoft Internet Service Manager, on the "directories" pages of the FTP, WWW, and Gopher property sheets. The page lists all configured virtual directories and gives their status. If a server is configured to use multiple IP addresses and domain names, multiple separate virtual directories (for instance, one for www.volcano.com and one for www.crater.com) can be maintained.
An Example
Problem:
Solution: Here's how it's done:
Technical Note: Execute Permissions One checkbox on the dialog above, the "execute" checkbox, deserves more explanation on this page. Because like almost all World Wide Web servers, Microsoft Internet Information Server supports dynamic content through extensions like ISAPI and CGI, World Wide Web client commands can cause programs to be executed on the Internet server. To make sure only those extension applications that have been configured by the administrator are able to run, the WWW service by default does not grant execute permission for any files except those in the "Scripts" virtual directory. This keeps an intruder who locates or places a program on the server from causing it to be executed by the server.
For your site's protection, make sure this attribute is disabled in directories that shouldn't contain programs to be executed by the server in response to HTTP requests, and make sure that this attribute is enabled in directories that do. |