Creating Web Sites and Home Directories

Applies To: Windows Server 2003, Windows Server 2003 with SP1

Each Web site must have one home directory. The home directory is the central location for your published Web pages. It contains a home page or index file that serves as a portal to other pages in your Web site. The home directory is mapped to the domain name of the Web site or to the name of the Web server.

Create a Web site and home directory for an ASP.NET application by completing the following steps:

  1. Create the folder that will be the home directory for the Web site on the Web server.

    The folder that is the home directory of the Web site contains all of the content and subdirectories for the Web site. The folder can be created on the same computer as the Web server or on a Universal Naming Convention (UNC)–shared folder on a separate server. At a minimum, create the folder on the following:

    • An NTFS file system partition, which helps ensure proper security.

    • A disk volume other than the system volume, which reduces the potential of an attack on a Web site bringing down the entire Web server and improves performance.

    • In a location that will not require requests for Web site content to contain /bin in the requested URL. As a security measure, ASP.NET returns a 404 error for all requests containing /bin in the requested URL.

    For more information about securing Web sites and applications, see Securing Web Sites and Applications. For more information about creating directories for Web sites, see Create a Web Site.

  2. Create the Web site on the server.

    For more information about how to create a Web site, see Create a Web Site.

  3. If the Web site is FrontPage extended, then configure the Web site on the Web server to be FrontPage extended.

    For more information about how to configure a Web site to be FrontPage extended, see Configure a Web Site to be FrontPage Extended.