Create a Web Site (IIS 7)
-------------------------
Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
When you want to publish content for access over the Internet or an intranet connection, you can add a Web site to your Web server to hold the content.
During IIS 7 installation, a default Web site configuration is created in the \Inetpub\Wwwroot directory on your Web server. You can either use this default directory to publish your Web content, or create a directory at a file system location of your choice.
When you add a Web site in IIS 7, a site entry is created in the ApplicationHost.config file. The entry specifies the network binding for the site, maps the site to a location in the file system, and optionally specifies user credentials for content access.
To add a Web site
------------------
You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.
User Interface To use the UI
----------------------------
1.Open IIS Manager. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
2.In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
3.In the Add Web Site dialog box, type a friendly name for your Web site in the Web site name box.
4.Click Select if you want to select a different application pool than the one listed in the Application Pool box. In the Select Application Pool dialog box, select an application pool from the Application Pool list and then click OK.
5.In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system to find the folder.
6.If the physical path that you entered in step 5 is to a remote share, click Connect as to specify credentials that have permission to access the path. If you do not use specific credentials, select the Application user (pass-thru authentication) option in the Connect As dialog box.
7.Select the protocol for the Web site from the Type list.
8.The default value in the IP address box is All Unassigned. If you must specify a static IP address for the Web site, type the IP address in the IP address box.
9.Type a port number in the Port text box.
10.Optionally, type a host header name for the Web site in the Host Header box.
11.If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site immediately check box.
12.Click OK.
for more details http://technet.microsoft.com/en-us/library/cc772350(WS.10).aspx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment