News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

How to: Create and Configure Local ASP.NET Web Sites in IIS 6.0

Started by dhilipkumar, Dec 12, 2008, 09:55 PM

Previous topic - Next topic

dhilipkumar

How to: Create and Configure Local ASP.NET Web Sites in IIS 6.0

Using Internet Information Services (IIS) Manager, you can create a local Web site for hosting an ASP.NET Web application. This topic explains how you can create a local Web site and configure it to run ASP.NET pages. For more information about how to install and configure IIS, or about how to create a Web site, see the IIS Help or the online IIS product documentation on the Microsoft TechNet Web site.

As an alternative to creating a local site, you can also create a virtual directory. This lets you host the Web site on one computer, although the Web site content is somewhere else, such as on a remote computer. It is also a convenient way to set up a site for local Web development work because it does not require a unique site identity. This means that it requires fewer steps than creating a unique site. For details, see How to: Create and Configure Virtual Directories in IIS 5.0 and 6.0.




To create a local Web site in IIS 6.0

   1.      On the Start menu, click Run.
   2.      In the Open box, type inetmgr and then click OK.
   3.      In IIS Manager, expand the local computer, right-click the Web Sites folder, click New, and then click Web Site.

      The Web Site Creation Wizard is displayed.
   4.      In the Web Site Creation Wizard, click Next.
   5.      In the Description box, type a descriptive label for the site (this label is not what you will type the address bar of a browser), and then click Next.
   6.      Type or select the IP address (the default is All Unassigned), TCP port, and host header (for example, www.microsoft.contoso.com) for your site.

7 In the Path box, type or browse to the directory that contains the site content, and then click Next.
8 Select the check boxes for the permissions that you want to assign to users, and then click Finish.

By default, the Read and Run Scripts check boxes are selected. These permissions enable you to run ASP.NET pages for many common scenarios.

To configure security and authentication for a local Web site

   1.      In IIS Manager, right-click node for the site that you want to configure, and then click Properties.
   2.      Click the Directory Security tab, and then in the Authentication and access control section, click Edit.
   3.      Select the check box for the authentication method or methods that you want to use for the site, and then click OK. By default, the Enable anonymous access and Windows Integrated Authentication check boxes are already selected.
   4.      In Windows Explorer, open the parent folder of the folder that contains the pages for the site. Right-click the folder and then click Sharing and Security.
   5.      On the Security tab, configure the additional accounts and permissions that are minimally necessary to run the Web site, and then click OK. Some of the accounts listed, such as Administrators and System, are already configured by default.